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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user