Index: background.js |
diff --git a/background.js b/background.js |
index d3cab934fadb6a0dd247ca4faf8898128deea9de..51a52d143e389af2596673c8202ec10b9f24fc13 100644 |
--- a/background.js |
+++ b/background.js |
@@ -90,8 +90,12 @@ |
}, |
get appLocale() |
{ |
- return parent.ext.i18n.getMessage("@@ui_locale").replace(/_/g, "-"); |
- } |
+ return parent.ext.i18n.locale.replace(/_/g, "-"); |
+ }, |
+ get readingDirection() |
+ { |
+ return bidiDir = /^(ar|fa|he|ug|ur)(-|$)/.test(this.appLocale) ? "rtl" : "ltr"; |
+ } |
} |
}; |