Merge pull request #5894 from electron/chrome-runtime-id

Implement chrome.runtime.id
This commit is contained in:
Cheng Zhao 2016-06-07 01:54:58 +00:00 committed by GitHub
commit 08f8e06c55
3 changed files with 9 additions and 4 deletions

View file

@ -99,6 +99,8 @@ exports.injectTo = function (extensionId, isBackgroundPage, context) {
})
chrome.runtime = {
id: extensionId,
getURL: function (path) {
return url.format({
protocol: 'chrome-extension',