mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-17 14:34:19 +01:00
steal focus on deep-link click
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user