From 469f3eabc515106bbadc6f1cf8f158983fb23ff6 Mon Sep 17 00:00:00 2001 From: zumbiepig <121742281+zumbiepig@users.noreply.github.com> Date: Tue, 20 Aug 2024 07:51:11 -0700 Subject: [PATCH] Pwa is done hopefully --- public/index.html | 2 +- public/settings/index.html | 2 +- public/{welcome.html => welcome/index.html} | 2 +- src/resources/scripts/settings.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename public/{welcome.html => welcome/index.html} (97%) diff --git a/public/index.html b/public/index.html index dc36849..5871172 100644 --- a/public/index.html +++ b/public/index.html @@ -30,7 +30,7 @@ iframe.id = 'main_frame' if (storage.local.get('lastVersion') === null) { - iframe.src = '/welcome.html'; + iframe.src = '/welcome/'; } else if (lastPage !== null) { iframe.src = lastPage; } else if (isMobile) { diff --git a/public/settings/index.html b/public/settings/index.html index 339bd2b..da9e946 100644 --- a/public/settings/index.html +++ b/public/settings/index.html @@ -71,7 +71,7 @@
- +
diff --git a/public/welcome.html b/public/welcome/index.html similarity index 97% rename from public/welcome.html rename to public/welcome/index.html index b427dcc..0f3789a 100644 --- a/public/welcome.html +++ b/public/welcome/index.html @@ -39,7 +39,7 @@ - + diff --git a/src/resources/scripts/settings.ts b/src/resources/scripts/settings.ts index aa7c8e8..7e0a45d 100644 --- a/src/resources/scripts/settings.ts +++ b/src/resources/scripts/settings.ts @@ -38,7 +38,7 @@ if (window.location.pathname === '/settings/') { }); } -if (window.location.pathname === '/welcome.html') { +if (window.location.pathname === '/welcome/') { document.addEventListener('DOMContentLoaded', () => { const setupForm = document.getElementById('setup-form') as HTMLFormElement; const usernameInput = document.getElementById('username-input') as HTMLInputElement;