mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-17 22:44:21 +01:00
deep-link fix
This commit is contained in:
@@ -47,7 +47,7 @@ customElements.define('app-router', class AppRouter extends HTMLElement {
|
||||
})
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
if (Pear.config.link.indexOf('pear://runtime') === 0) {
|
||||
if (Pear.config.link.indexOf('pear://runtime/') === 0) {
|
||||
this.load(Pear.config.link.slice(14)).catch(console.error)
|
||||
} else {
|
||||
this.load('/')
|
||||
|
||||
Reference in New Issue
Block a user