| Index: i18n.js |
| =================================================================== |
| --- a/i18n.js |
| +++ b/i18n.js |
| @@ -16,17 +16,17 @@ |
| */ |
| "use strict"; |
| // Getting UI locale cannot be done synchronously on Firefox, |
| // requires messaging the background page. For Chrome and Safari, |
| // we could get the UI locale here, but would need to duplicate |
| // the logic implemented in Utils.appLocale. |
| -ext.backgroundPage.sendMessage( |
| +chrome.runtime.sendMessage( |
| { |
| type: "app.get", |
| what: "localeInfo" |
| }, |
| (localeInfo) => |
| { |
| document.documentElement.lang = localeInfo.locale; |
| document.documentElement.dir = localeInfo.bidiDir; |