From 251e3355dedcbb01949f8bbab7f3484de9d7f458 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Sat, 19 Oct 2024 21:06:12 -0400 Subject: [PATCH] Call listPages on page load --- content/offline.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/offline.md b/content/offline.md index 2cbab91..30f833b 100644 --- a/content/offline.md +++ b/content/offline.md @@ -81,6 +81,10 @@ async function listPages() { return result; } + +document.addEventListener("DOMContentLoaded", (event) => { + listPages() +}); {{< /unsafe >}} \ No newline at end of file