Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmarkclements committed Mar 7, 2024
1 parent 331ffc2 commit 005d2b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/app-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ customElements.define('app-router', class AppRouter extends HTMLElement {
constructor () {
super()
this.routes = {}
this.page = '/'
this.page = null
}

unload () {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 005d2b1

Please sign in to comment.