From 61ce19ba7e293788f9d8a393611aae3f60784714 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 6 Jun 2016 14:42:07 -0700 Subject: [PATCH] Set chrome.runtime.id --- lib/renderer/chrome-api.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/renderer/chrome-api.js b/lib/renderer/chrome-api.js index 61fce14..17c3f5b 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', -- 2.7.4