Set chrome.runtime.id
This commit is contained in:
parent
d6311daea3
commit
61ce19ba7e
1 changed files with 2 additions and 0 deletions
|
@ -99,6 +99,8 @@ exports.injectTo = function (extensionId, isBackgroundPage, context) {
|
|||
})
|
||||
|
||||
chrome.runtime = {
|
||||
id: extensionId,
|
||||
|
||||
getURL: function (path) {
|
||||
return url.format({
|
||||
protocol: 'chrome-extension',
|
||||
|
|
Loading…
Reference in a new issue