diff --git a/lib/renderer/chrome-api.js b/lib/renderer/chrome-api.js index 61fce14c5b..17c3f5bfbd 100644 --- a/lib/renderer/chrome-api.js +++ b/lib/renderer/chrome-api.js @@ -99,6 +99,8 @@ exports.injectTo = function (extensionId, isBackgroundPage, context) { }) chrome.runtime = { + id: extensionId, + getURL: function (path) { return url.format({ protocol: 'chrome-extension',