Skip to content

Commit

Permalink
conventionalize
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmarkclements committed Mar 6, 2024
1 parent bc7689e commit e295cd9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/app-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,8 @@ customElements.define('app-router', class AppRouter extends HTMLElement {
})

window.addEventListener('load', () => {
if (Pear.config.linkData) {
this.load('/' + Pear.config.linkData).catch(console.error)
} else {
this.load('/')
}
const page = '/' + (Pear.config.linkData || '')
this.load(page).catch(console.error)
Pear.wakeup(({ data }) => {
Pear.Window.self.focus().catch(console.error)
const page = '/' + (data || '')
Expand Down

0 comments on commit e295cd9

Please sign in to comment.