diff --git a/src/services/electron/cache.ts b/src/services/electron/cache.ts index c7ba5ba1f..3c7d213a4 100644 --- a/src/services/electron/cache.ts +++ b/src/services/electron/cache.ts @@ -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 { if (this.allElectronAPIsExist) { diff --git a/src/services/electron/common.ts b/src/services/electron/common.ts index 70815e82a..8f29837b1 100644 --- a/src/services/electron/common.ts +++ b/src/services/electron/common.ts @@ -7,7 +7,7 @@ class ElectronService { constructor() { this.ElectronAPIs = runningInBrowser() && window['ElectronAPIs']; - this.isBundledApp = !!this.ElectronAPIs?.openLocalCache; + this.isBundledApp = !!this.ElectronAPIs?.openDiskCache; } checkIsBundledApp() {