diff --git a/src/background.js b/src/background.js index be23191a..ed31b4d1 100644 --- a/src/background.js +++ b/src/background.js @@ -10,7 +10,7 @@ var bg_apiService = new ApiService(bg_tokenService, bg_appIdService, bg_utilsSer var bg_userService = new UserService(bg_tokenService, bg_apiService, bg_cryptoService); var bg_settingsService = new SettingsService(bg_userService); var bg_loginService = new LoginService(bg_cryptoService, bg_userService, bg_apiService, bg_settingsService); -var bg_folderService = new FolderService(bg_cryptoService, bg_userService, bg_apiService); +var bg_folderService = new FolderService(bg_cryptoService, bg_userService, bg_apiService, bg_i18nService); var bg_lockService = new LockService(bg_constantsService, bg_cryptoService, bg_folderService, bg_loginService, setIcon, refreshBadgeAndMenu); var bg_syncService = new SyncService(bg_loginService, bg_folderService, bg_userService, bg_apiService, bg_settingsService, diff --git a/src/services/folderService.js b/src/services/folderService.js index efbc5cd8..09e575d5 100644 --- a/src/services/folderService.js +++ b/src/services/folderService.js @@ -1,7 +1,8 @@ -function FolderService(cryptoService, userService, apiService) { +function FolderService(cryptoService, userService, apiService, i18nService) { this.cryptoService = cryptoService; this.userService = userService; this.apiService = apiService; + this.i18nService = i18nService; this.decryptedFolderCache = null; initFolderService(); @@ -82,7 +83,7 @@ function initFolderService() { var promises = []; var decFolders = [{ id: null, - name: i18nService.noneFolder + name: self.i18nService.noneFolder }]; self.getAll(function (folders) { for (var i = 0; i < folders.length; i++) {