From 3161801ca58685424a11ef2864678f618536fa04 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Sat, 19 Oct 2024 21:11:48 -0400 Subject: [PATCH] Service worker update --- content/offline.md | 4 +++- themes/pulp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/content/offline.md b/content/offline.md index 30f833b..65b406c 100644 --- a/content/offline.md +++ b/content/offline.md @@ -83,7 +83,9 @@ async function listPages() { } document.addEventListener("DOMContentLoaded", (event) => { - listPages() + if (navigator && navigator.serviceWorker) { + listPages() + } }); diff --git a/themes/pulp b/themes/pulp index df0ec44..be3e20f 160000 --- a/themes/pulp +++ b/themes/pulp @@ -1 +1 @@ -Subproject commit df0ec44936cb06d4ec0282e3cd057321ad655b2a +Subproject commit be3e20feb6562044b0b6559810d4482bf90f9ef2