fix isBundledApp and allElectronAPIsExist check
This commit is contained in:
parent
81be57c386
commit
3578532db4
|
@ -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) {
|
||||
|
|
|
@ -7,7 +7,7 @@ class ElectronService {
|
|||
|
||||
constructor() {
|
||||
this.ElectronAPIs = runningInBrowser() && window['ElectronAPIs'];
|
||||
this.isBundledApp = !!this.ElectronAPIs?.openLocalCache;
|
||||
this.isBundledApp = !!this.ElectronAPIs?.openDiskCache;
|
||||
}
|
||||
|
||||
checkIsBundledApp() {
|
||||
|
|
Loading…
Reference in a new issue