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

Unified Diff: desktop-options.js

Issue 29573083: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Remove check for window.browser Created Oct. 13, 2017, 4:59 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 | « desktop-options.html ('k') | devtools-panel.html » ('j') | polyfill.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: desktop-options.js
===================================================================
--- a/desktop-options.js
+++ b/desktop-options.js
@@ -22,17 +22,17 @@
{
let subscriptionsMap = Object.create(null);
let filtersMap = Object.create(null);
let collections = Object.create(null);
let acceptableAdsUrl = null;
let acceptableAdsPrivacyUrl = null;
let isCustomFiltersLoaded = false;
- let {getMessage} = chrome.i18n;
+ let {getMessage} = browser.i18n;
let customFilters = [];
let filterErrors = new Map([
["synchronize_invalid_url",
"options_filterList_lastDownload_invalidURL"],
["synchronize_connection_error",
"options_filterList_lastDownload_connectionError"],
["synchronize_invalid_data",
"options_filterList_lastDownload_invalidData"],
« no previous file with comments | « desktop-options.html ('k') | devtools-panel.html » ('j') | polyfill.js » ('J')

Powered by Google App Engine
This is Rietveld