Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
prevent erroring from avatar if in an insecure context
Browse files Browse the repository at this point in the history
  • Loading branch information
CelestialCrafter committed Feb 5, 2024
1 parent 5c517ec commit daa65a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/components/Avatar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
onMount(() => {
const updateAvatar = async () => {
if (!caches) return;
const cache = await caches.open('avatar-cache');
let avatar = await cache.match('/avatar');
Expand Down

0 comments on commit daa65a7

Please sign in to comment.