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

Unified Diff: devtools-panel.js

Issue 29573083: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Rebase Created Oct. 16, 2017, 9:33 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-panel.html ('k') | ext/common.js » ('j') | firstRun.html » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devtools-panel.js
===================================================================
--- a/devtools-panel.js
+++ b/devtools-panel.js
@@ -249,11 +249,11 @@
lastFilterQuery = null;
break;
}
});
// Since Chrome 54 the themeName is accessible, for earlier versions we must
// assume the default theme is being used.
// https://bugs.chromium.org/p/chromium/issues/detail?id=608869
- let theme = chrome.devtools.panels.themeName || "default";
+ let theme = browser.devtools.panels.themeName || "default";
document.body.classList.add(theme);
}, false);
« no previous file with comments | « devtools-panel.html ('k') | ext/common.js » ('j') | firstRun.html » ('J')

Powered by Google App Engine
This is Rietveld