diff --git a/lib/app-router.js b/lib/app-router.js index d25423a..a9b155b 100644 --- a/lib/app-router.js +++ b/lib/app-router.js @@ -74,7 +74,7 @@ customElements.define('app-router', class AppRouter extends HTMLElement { console.log('load', page) this.load(page).catch(console.error) Pear.wakeups(({ data }) => { - Pear.Window.self.focus().catch(console.error) + Pear.Window.self.focus({ steal: true }).catch(console.error) const page = '/' + (data || '') this.load(page).catch(console.error) }) diff --git a/reference/api.md b/reference/api.md index c5c5b6c..8572c14 100644 --- a/reference/api.md +++ b/reference/api.md @@ -405,9 +405,6 @@ The `listener` function is called for every incoming wakeup with a `wakeup` obje Also returns a [`streamx`](https://github.com/mafintosh/streamx) `Readable`) stream. - - - ### `const win = new Pear.Window(entry , options )` Desktop Applications only.