fix isBundledApp and allElectronAPIsExist check

This commit is contained in:
Abhinav 2022-08-11 10:55:18 +05:30
parent 81be57c386
commit 3578532db4
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ class ElectronCacheService {
constructor() {
this.ElectronAPIs = runningInBrowser() && window['ElectronAPIs'];
this.allElectronAPIsExist = !!this.ElectronAPIs?.openLocalCache;
this.allElectronAPIsExist = !!this.ElectronAPIs?.openDiskCache;
}
async open(cacheName: string): Promise<Cache> {
if (this.allElectronAPIsExist) {

View file

@ -7,7 +7,7 @@ class ElectronService {
constructor() {
this.ElectronAPIs = runningInBrowser() && window['ElectronAPIs'];
this.isBundledApp = !!this.ElectronAPIs?.openLocalCache;
this.isBundledApp = !!this.ElectronAPIs?.openDiskCache;
}
checkIsBundledApp() {