From 005d2b1d6dff307115e66396125e8d519d27c7a9 Mon Sep 17 00:00:00 2001 From: dmc Date: Thu, 7 Mar 2024 02:27:44 +0100 Subject: [PATCH] fix --- lib/app-router.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/app-router.js b/lib/app-router.js index 5c5d7ad..d25423a 100644 --- a/lib/app-router.js +++ b/lib/app-router.js @@ -3,7 +3,7 @@ customElements.define('app-router', class AppRouter extends HTMLElement { constructor () { super() this.routes = {} - this.page = '/' + this.page = null } unload () { @@ -71,6 +71,7 @@ customElements.define('app-router', class AppRouter extends HTMLElement { window.addEventListener('load', () => { const page = '/' + (Pear.config.linkData || '') + console.log('load', page) this.load(page).catch(console.error) Pear.wakeups(({ data }) => { Pear.Window.self.focus().catch(console.error)