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

Unified Diff: devtools.js

Issue 29570614: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Refactor polyfill.js Created Oct. 10, 2017, 10:39 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 | « devtools.html ('k') | ext/background.js » ('j') | polyfill.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devtools.js
===================================================================
--- a/devtools.js
+++ b/devtools.js
@@ -17,28 +17,28 @@
"use strict";
let panelWindow = null;
// Versions of Firefox before 54 do not support the devtools.panels API; on
// these platforms, even when the option is enabled, we cannot show the
// devtools panel.
-if ("panels" in chrome.devtools)
+if ("panels" in browser.devtools)
{
- chrome.runtime.sendMessage(
+ browser.runtime.sendMessage(
{
type: "prefs.get",
key: "show_devtools_panel"
},
enabled =>
{
if (enabled)
{
- chrome.devtools.panels.create(
+ browser.devtools.panels.create(
"Adblock Plus",
"icons/detailed/abp-48.png",
"devtools-panel.html",
panel =>
{
panel.onShown.addListener(window =>
{
panelWindow = window;
« no previous file with comments | « devtools.html ('k') | ext/background.js » ('j') | polyfill.js » ('J')

Powered by Google App Engine
This is Rietveld