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

Unified Diff: ext/common.js

Issue 29338058: Issue 3695 - Edge exposes it's API with the "browser" namespace instead "chrome" (Closed)
Patch Set: Created March 10, 2016, 11:58 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
===================================================================
--- a/ext/common.js
+++ b/ext/common.js
@@ -18,6 +18,10 @@
(function()
{
+ // Both Edge and Mozilla Web Extensions use the namespace 'browser' instead of 'chrome'
+ if (!("chrome" in window))
+ window.chrome = window.browser;
+
window.ext = {};
var EventTarget = ext._EventTarget = function()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld