Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: ext/popup.js

Issue 29458601: Issue 5315 - Add support for Microsoft Edge (Closed)
Patch Set: Address the nits Created June 22, 2017, 1:32 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ext/common.js ('k') | icons/abp-150.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ext/popup.js
===================================================================
--- a/ext/popup.js
+++ b/ext/popup.js
@@ -2,6 +2,9 @@
(function()
{
+ if ((typeof chrome == "undefined") ||
kzar 2017/06/22 13:45:01 Nit: This seems inconsistent with the check in ext
+ (typeof chrome.extension == "undefined"))
+ window.chrome = browser;
const backgroundPage = chrome.extension.getBackgroundPage();
window.ext = Object.create(backgroundPage.ext);
« no previous file with comments | « ext/common.js ('k') | icons/abp-150.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld