on master help sign in
made things compatible with closure compiler even though i'm not going to use it
commitdd1f22bbdfd657fdd782c619b2791b07ae5f9167 authoriko <ilyakooo0@gmail.com> dateSun 31 Jul 2022, 12:49 (4 years ago) parent6803b7b
1 file changed+23−20
backend/BW.js+23−20
backend/BW.js+23−20
@@ -64,11 +64,11 @@ export function getServices() {
6464 getProfile: (req) => api.getProfile(req),
6565 postIdentityToken: (req) => api.postIdentityToken(
6666 new PasswordTokenRequest(
67− email = req.email,
68− masterPasswordHash = req.masterPasswordHash,
69− captchaResponse = req.captchaResponse,
70− twoFactor = new TokenRequestTwoFactor(req.twoFactor),
71− device = req.device
67+ req.email,
68+ req.masterPasswordHash,
69+ req.captchaResponse,
70+ new TokenRequestTwoFactor(req.twoFactor),
71+ req.device
7272 )
7373 ),
7474 getSync: () => api.getSync().then(sanitize),
@@ -80,20 +80,20 @@ export function getServices() {
8080}
8181
8282class MainBackground {
83− messagingService; //: MessagingServiceAbstraction;
84− storageService; //: StorageServiceAbstraction;
85− i18nService; //: I18nServiceAbstraction;
86− platformUtilsService; //: PlatformUtilsServiceAbstraction;
87− logService; //: LogServiceAbstraction;
88− cryptoService; //: CryptoServiceAbstraction;
89− cryptoFunctionService; //: CryptoFunctionServiceAbstraction;
90− tokenService; //: TokenServiceAbstraction;
91− appIdService; //: AppIdServiceAbstraction;
92− apiService; //: ApiServiceAbstraction;
93− environmentService; //: EnvironmentServiceAbstraction;
94− authService; //: AuthServiceAbstraction;
95− stateService; //: StateServiceAbstraction;
96− stateMigrationService; //: StateMigrationService;
83+ // messagingService; //: MessagingServiceAbstraction;
84+ // storageService; //: StorageServiceAbstraction;
85+ // i18nService; //: I18nServiceAbstraction;
86+ // platformUtilsService; //: PlatformUtilsServiceAbstraction;
87+ // logService; //: LogServiceAbstraction;
88+ // cryptoService; //: CryptoServiceAbstraction;
89+ // cryptoFunctionService; //: CryptoFunctionServiceAbstraction;
90+ // tokenService; //: TokenServiceAbstraction;
91+ // appIdService; //: AppIdServiceAbstraction;
92+ // apiService; //: ApiServiceAbstraction;
93+ // environmentService; //: EnvironmentServiceAbstraction;
94+ // authService; //: AuthServiceAbstraction;
95+ // stateService; //: StateServiceAbstraction;
96+ // stateMigrationService; //: StateMigrationService;
9797
9898
9999 constructor() {
@@ -173,7 +173,10 @@ class MainBackground {
173173}
174174
175175class MemoryStorageService {
176− storage = {};
176+
177+ constructor() {
178+ this.storage = {};
179+ }
177180
178181 async get(key) {
179182 return this.storage[key]