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: Add polyfill.js to README.md Created Oct. 17, 2017, 12:35 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') | common.js » ('j') | no next file with comments »
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') | common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld