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

Unified Diff: ext/devtools.js

Issue 29375899: Issue 4871 - Start using ESLint for adblockplusui (Closed)
Patch Set: Move dots to the start of the line Created March 8, 2017, 10:26 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 | « ext/content.js ('k') | firstRun.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ext/devtools.js
diff --git a/ext/devtools.js b/ext/devtools.js
index 42c692e668e87acf27ff75e2e6ba7af86cfd1476..2dc77b399395cd141dfa22a40c83bd1632aaa9b4 100644
--- a/ext/devtools.js
+++ b/ext/devtools.js
@@ -17,20 +17,17 @@
"use strict";
-(function(global)
-{
- if (!global.ext)
- global.ext = {};
+if (typeof ext == "undefined")
+ window.ext = {};
- global.ext.devtools = {
- panels: {
- openResource: function() {}
- },
+window.ext.devtools = {
+ panels: {
+ openResource() {}
+ },
- inspectedWindow: {
- reload: function() {}
- }
- };
+ inspectedWindow: {
+ reload() {}
+ }
+};
- global.ext.backgroundPage._sendRawMessage({type: "devtools"});
-})(this);
+window.ext.backgroundPage._sendRawMessage({type: "devtools"});
« no previous file with comments | « ext/content.js ('k') | firstRun.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld