Index: ext/content.js |
=================================================================== |
--- a/ext/content.js |
+++ b/ext/content.js |
@@ -56,20 +56,20 @@ |
messageQueue.push(message); |
else |
backgroundFrame.contentWindow.postMessage(message, "*"); |
} |
}; |
/* Polyfills */ |
- if (!("runtime" in chrome)) |
- chrome.runtime = {}; |
+ if (!("runtime" in browser)) |
+ browser.runtime = {}; |
- chrome.runtime.sendMessage = (message, responseCallback) => |
+ browser.runtime.sendMessage = (message, responseCallback) => |
{ |
let messageId = ++maxMessageId; |
ext.backgroundPage._sendRawMessage({ |
type: "message", |
messageId, |
payload: message |
}); |