i18nService is passed in
This commit is contained in:
parent
c3e836e750
commit
09f6b36bbb
|
@ -47,10 +47,10 @@ export default class MainBackground {
|
||||||
private loginToAutoFill: any = null;
|
private loginToAutoFill: any = null;
|
||||||
private pageDetailsToAutoFill: any[] = [];
|
private pageDetailsToAutoFill: any[] = [];
|
||||||
|
|
||||||
constructor(window: Window) {
|
constructor(window: Window, i18nService: any) {
|
||||||
// Services
|
// Services
|
||||||
|
this.i18nService = i18nService;
|
||||||
this.utilsService = new UtilsService();
|
this.utilsService = new UtilsService();
|
||||||
this.i18nService = new i18nService(this.utilsService);
|
|
||||||
this.constantsService = new ConstantsService(this.i18nService, this.utilsService);
|
this.constantsService = new ConstantsService(this.i18nService, this.utilsService);
|
||||||
this.cryptoService = new CryptoService();
|
this.cryptoService = new CryptoService();
|
||||||
this.tokenService = new TokenService();
|
this.tokenService = new TokenService();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
export default function i18nService(utilsService) {
|
export default function i18nService() {
|
||||||
this.__edgeMessages = {};
|
this.__edgeMessages = {};
|
||||||
|
|
||||||
if (utilsService.isEdge()) {
|
if (navigator.userAgent.indexOf(' Edge/') !== -1) {
|
||||||
fetch('../_locales/en/messages.json').then((file) => {
|
fetch('../_locales/en/messages.json').then((file) => {
|
||||||
return file.json();
|
return file.json();
|
||||||
}).then((locales) => {
|
}).then((locales) => {
|
||||||
|
|
Loading…
Reference in New Issue