Skip to content

Commit

Permalink
fix: Avoid throwing if caches is undeclared (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
unkhz authored Mar 2, 2023
1 parent 937d792 commit 8e66008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/* SPDX-License-Identifier: MIT */

export const canUseDefaultCache =
typeof self.caches?.default?.put === "function";
typeof self.caches?.default?.put === "function";

0 comments on commit 8e66008

Please sign in to comment.