mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
dont await void methods
This commit is contained in:
@@ -42,7 +42,7 @@ export class EnvironmentService implements EnvironmentServiceAbstraction {
|
|||||||
|
|
||||||
if (urls.base) {
|
if (urls.base) {
|
||||||
this.baseUrl = envUrls.base = urls.base;
|
this.baseUrl = envUrls.base = urls.base;
|
||||||
await this.apiService.setUrls(envUrls);
|
this.apiService.setUrls(envUrls);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ export class EnvironmentService implements EnvironmentServiceAbstraction {
|
|||||||
this.identityUrl = envUrls.identity = urls.identity;
|
this.identityUrl = envUrls.identity = urls.identity;
|
||||||
this.iconsUrl = urls.icons;
|
this.iconsUrl = urls.icons;
|
||||||
this.notificationsUrl = urls.notifications;
|
this.notificationsUrl = urls.notifications;
|
||||||
await this.apiService.setUrls(envUrls);
|
this.apiService.setUrls(envUrls);
|
||||||
}
|
}
|
||||||
|
|
||||||
async setUrls(urls: any): Promise<any> {
|
async setUrls(urls: any): Promise<any> {
|
||||||
@@ -86,7 +86,7 @@ export class EnvironmentService implements EnvironmentServiceAbstraction {
|
|||||||
envUrls.identity = this.identityUrl;
|
envUrls.identity = this.identityUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.apiService.setUrls(envUrls);
|
this.apiService.setUrls(envUrls);
|
||||||
if (this.notificationsService != null) {
|
if (this.notificationsService != null) {
|
||||||
this.notificationsService.init(this);
|
this.notificationsService.init(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user