Skip to content

Commit

Permalink
steal focus on deep-link click
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmarkclements committed Mar 7, 2024
1 parent f7bb6ae commit 9c1d16c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion lib/app-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down
3 changes: 0 additions & 3 deletions reference/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <String>, options <Object>)`

Desktop Applications only.
Expand Down

0 comments on commit 9c1d16c

Please sign in to comment.