Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix build

Abhinave975acad23c4
diff --git a/packages/shared/storage/cacheStorage/factory.ts b/packages/shared/storage/cacheStorage/factory.ts
index fe63213dc7..2f0ec2ed16 100644
--- a/packages/shared/storage/cacheStorage/factory.ts
+++ b/packages/shared/storage/cacheStorage/factory.ts
@@ -30,7 +30,10 @@ function transformBrowserCacheStorageToLimitedCacheStorage(
async open(cacheName) {
const cache = await caches.open(cacheName);
return {
- match: cache.match.bind(cache),
+ match: (key) => {
+ // options are not supported in the browser
+ return cache.match(key);
+ },
put: cache.put.bind(cache),
delete: cache.delete.bind(cache),
};