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

Unified Diff: ext/common.js

Issue 29342906: Issue 4021 - The logic that checks for Edge is incorrect in adblockplusedge (Closed)
Patch Set: Created May 23, 2016, 5:22 a.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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ext/common.js
diff --git a/ext/common.js b/ext/common.js
index 527816256f0296f72ab504b23bc5dfab76baf186..ca5b733120c7b41dd9678421e1a890f74b1b35b5 100644
--- a/ext/common.js
+++ b/ext/common.js
@@ -19,7 +19,7 @@
(function()
{
// Both Edge and Mozilla Web Extensions use the namespace 'browser' instead of 'chrome'
- if (!("chrome" in window))
+ if (typeof browser != 'undefined')
window.chrome = window.browser;
window.ext = {};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld