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 = {
|
chrome.runtime = {
|
||||||
|
id: extensionId,
|
||||||
|
|
||||||
getURL: function (path) {
|
getURL: function (path) {
|
||||||
return url.format({
|
return url.format({
|
||||||
protocol: 'chrome-extension',
|
protocol: 'chrome-extension',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue