mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-18 02:41:15 +02:00
dont exist when bgMain is null
This commit is contained in:
parent
6a22410a60
commit
020520729c
@ -20,17 +20,13 @@ export default class Analytics {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const bgMain = bgPage.bitwardenMain;
|
const bgMain = bgPage.bitwardenMain;
|
||||||
if (!bgMain) {
|
if (platformUtilsService == null && bgMain) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (platformUtilsService == null) {
|
|
||||||
this.platformUtilsService = bgMain.platformUtilsService as PlatformUtilsService;
|
this.platformUtilsService = bgMain.platformUtilsService as PlatformUtilsService;
|
||||||
}
|
}
|
||||||
if (storageService == null) {
|
if (storageService == null && bgMain) {
|
||||||
this.storageService = bgMain.storageService as StorageService;
|
this.storageService = bgMain.storageService as StorageService;
|
||||||
}
|
}
|
||||||
if (appIdService == null) {
|
if (appIdService == null && bgMain) {
|
||||||
this.appIdService = bgMain.appIdService as AppIdService;
|
this.appIdService = bgMain.appIdService as AppIdService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user