Index: options.js |
=================================================================== |
--- a/options.js |
+++ b/options.js |
@@ -24,6 +24,11 @@ |
document.title = iframe.contentDocument.title; |
}; |
+// In Edge the namespace for extension APIs is 'browser'. The 'chrome' object, |
+// while available does not contain the runtime object needed below. |
+if (typeof chrome == "undefined" || typeof chrome.runtime == "undefined") |
Manish Jethani
2017/10/09 12:03:52
LGTM
I would move it to the top of the file thoug
|
+ window.chrome = window.browser; |
+ |
chrome.runtime.sendMessage({ |
type: "app.get", |
what: "application" |