From f402dde9be6b81a337b07f43f932354a2d22de90 Mon Sep 17 00:00:00 2001 From: Alexis Reigel Date: Sun, 27 Aug 2023 21:12:06 +0200 Subject: [PATCH] WIP --- client/src/App.svelte | 10 ++++++---- client/www.html | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 client/www.html diff --git a/client/src/App.svelte b/client/src/App.svelte index 81838996..c8482054 100644 --- a/client/src/App.svelte +++ b/client/src/App.svelte @@ -1,4 +1,4 @@ - +
{#if !isPwa()} @@ -22,8 +22,10 @@ import MultipleTabs from './MultipleTabs.svelte' import { isPwa } from './capabilities' - $: console.log('$location', $location) - $: console.log('location', window.location) + /* $: console.log('$location', $location) */ + /* $: console.log('location.pathname', window.location.pathname) */ + $: isApp = window.location.pathname == '/www.html' + $: console.log('isApp', isApp); const authenticate = async () => { if ($isAuthenticated === true) return true @@ -82,7 +84,7 @@ }), '/': wrap({ asyncComponent: () => {}, - conditions: [() => push('/notes')] + conditions: [() => push(isApp ? '/www' : '/notes')] }), '/www': wrap({ component: LandingPage, diff --git a/client/www.html b/client/www.html new file mode 100644 index 00000000..32ed1787 --- /dev/null +++ b/client/www.html @@ -0,0 +1,15 @@ + + + + + + + + + unnote + + +
+ + +