mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-17 14:34:19 +01:00
import pear -> global.Pear, font
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
/* eslint-env browser */
|
||||
|
||||
import { config } from 'pear'
|
||||
|
||||
customElements.define('app-router', class AppRouter extends HTMLElement {
|
||||
constructor () {
|
||||
super()
|
||||
@@ -50,8 +47,8 @@ customElements.define('app-router', class AppRouter extends HTMLElement {
|
||||
})
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
if (config.link.indexOf('pear://pulse') === 0) {
|
||||
this.load(config.link.slice(12)).catch(console.error)
|
||||
if (Pear.config.link.indexOf('pear://pulse') === 0) {
|
||||
this.load(Pear.config.link.slice(12)).catch(console.error)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user