mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
dont exist when bgMain is null
This commit is contained in:
@@ -20,17 +20,13 @@ export default class Analytics {
|
||||
}
|
||||
|
||||
const bgMain = bgPage.bitwardenMain;
|
||||
if (!bgMain) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (platformUtilsService == null) {
|
||||
if (platformUtilsService == null && bgMain) {
|
||||
this.platformUtilsService = bgMain.platformUtilsService as PlatformUtilsService;
|
||||
}
|
||||
if (storageService == null) {
|
||||
if (storageService == null && bgMain) {
|
||||
this.storageService = bgMain.storageService as StorageService;
|
||||
}
|
||||
if (appIdService == null) {
|
||||
if (appIdService == null && bgMain) {
|
||||
this.appIdService = bgMain.appIdService as AppIdService;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user