Merge pull request #5894 from electron/chrome-runtime-id
Implement chrome.runtime.id
This commit is contained in:
commit
08f8e06c55
3 changed files with 9 additions and 4 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…
Add table
Add a link
Reference in a new issue