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 parent.ext.i18n.locale.replace(/_/g, "-"); |
Manish Jethani
2017/10/09 05:10:14
I'm not sure why it says parent here, but I've rep
|
+ return chrome.i18n.getUILanguage(); |
}, |
get readingDirection() |
{ |
return /^(?:ar|fa|he|ug|ur)\b/.test(this.appLocale) ? "rtl" : "ltr"; |
} |
} |
}; |