on master help sign in
made things compatible with closure compiler even though i'm not going to use it
dd1f22biko
backend/BW.js+23−20
@@ -64,11 +64,11 @@ export function getServices() {
64 getProfile: (req) => api.getProfile(req),
64 getProfile: (req) => api.getProfile(req),
65 postIdentityToken: (req) => api.postIdentityToken(
65 postIdentityToken: (req) => api.postIdentityToken(
66 new PasswordTokenRequest(
66 new PasswordTokenRequest(
67− email = req.email,
67+ req.email,
68− masterPasswordHash = req.masterPasswordHash,
68+ req.masterPasswordHash,
69− captchaResponse = req.captchaResponse,
69+ req.captchaResponse,
70− twoFactor = new TokenRequestTwoFactor(req.twoFactor),
70+ new TokenRequestTwoFactor(req.twoFactor),
71− device = req.device
71+ req.device
72 )
72 )
73 ),
73 ),
74 getSync: () => api.getSync().then(sanitize),
74 getSync: () => api.getSync().then(sanitize),
@@ -80,20 +80,20 @@ export function getServices() {
80}
80}
81
81
82class MainBackground {
82class MainBackground {
83− messagingService; //: MessagingServiceAbstraction;
83+ // messagingService; //: MessagingServiceAbstraction;
84− storageService; //: StorageServiceAbstraction;
84+ // storageService; //: StorageServiceAbstraction;
85− i18nService; //: I18nServiceAbstraction;
85+ // i18nService; //: I18nServiceAbstraction;
86− platformUtilsService; //: PlatformUtilsServiceAbstraction;
86+ // platformUtilsService; //: PlatformUtilsServiceAbstraction;
87− logService; //: LogServiceAbstraction;
87+ // logService; //: LogServiceAbstraction;
88− cryptoService; //: CryptoServiceAbstraction;
88+ // cryptoService; //: CryptoServiceAbstraction;
89− cryptoFunctionService; //: CryptoFunctionServiceAbstraction;
89+ // cryptoFunctionService; //: CryptoFunctionServiceAbstraction;
90− tokenService; //: TokenServiceAbstraction;
90+ // tokenService; //: TokenServiceAbstraction;
91− appIdService; //: AppIdServiceAbstraction;
91+ // appIdService; //: AppIdServiceAbstraction;
92− apiService; //: ApiServiceAbstraction;
92+ // apiService; //: ApiServiceAbstraction;
93− environmentService; //: EnvironmentServiceAbstraction;
93+ // environmentService; //: EnvironmentServiceAbstraction;
94− authService; //: AuthServiceAbstraction;
94+ // authService; //: AuthServiceAbstraction;
95− stateService; //: StateServiceAbstraction;
95+ // stateService; //: StateServiceAbstraction;
96− stateMigrationService; //: StateMigrationService;
96+ // stateMigrationService; //: StateMigrationService;
97
97
98
98
99 constructor() {
99 constructor() {
@@ -173,7 +173,10 @@ class MainBackground {
173}
173}
174
174
175class MemoryStorageService {
175class MemoryStorageService {
176+
177+ constructor() {
176− storage = {};
178+ this.storage = {};
179+ }
177
180
178 async get(key) {
181 async get(key) {
179 return this.storage[key]
182 return this.storage[key]