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

Unified Diff: ext/devtools.js

Issue 29570614: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Use browser object directly when available Created Oct. 11, 2017, 10: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 | « ext/content.js ('k') | include.preload.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ext/devtools.js
===================================================================
--- a/ext/devtools.js
+++ b/ext/devtools.js
@@ -14,14 +14,14 @@
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";
(function()
{
- let inspectedTabId = chrome.devtools.inspectedWindow.tabId;
- let port = chrome.runtime.connect({name: "devtools-" + inspectedTabId});
+ let inspectedTabId = browser.devtools.inspectedWindow.tabId;
+ let port = browser.runtime.connect({name: "devtools-" + inspectedTabId});
ext.onMessage = port.onMessage;
- ext.devtools = chrome.devtools;
+ ext.devtools = browser.devtools;
}());
« no previous file with comments | « ext/content.js ('k') | include.preload.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld