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

Unified Diff: background.js

Issue 29573083: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Created Oct. 10, 2017, 10:24 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 | « background.html ('k') | desktop-options.html » ('j') | ext/common.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -87,17 +87,17 @@
modules.utils = {
Utils: {
getDocLink(link)
{
return "https://adblockplus.org/redirect?link=" + encodeURIComponent(link);
},
get appLocale()
{
- return chrome.i18n.getUILanguage();
+ return browser.i18n.getUILanguage();
},
get readingDirection()
{
return /^(?:ar|fa|he|ug|ur)\b/.test(this.appLocale) ? "rtl" : "ltr";
}
}
};
« no previous file with comments | « background.html ('k') | desktop-options.html » ('j') | ext/common.js » ('J')

Powered by Google App Engine
This is Rietveld