Skip to content

Commit 949b618

Browse files
committed
chore: check if caches exists
1 parent 07f2d86 commit 949b618

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/src/ts/states/version.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ async function check(): Promise<void> {
4848
}
4949

5050
function purgeCaches(): void {
51+
if (!("caches" in window)) return;
5152
void caches.keys().then(function (names) {
5253
for (const name of names) void caches.delete(name);
5354
});

0 commit comments

Comments
 (0)