mirror of
https://github.com/aljazceru/pear-docs.git
synced 2026-02-22 15:14:24 +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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import os from 'os'
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import { spawn } from 'child_process'
|
||||
import { config, versions } from 'pear'
|
||||
const { config, versions } = Pear
|
||||
|
||||
const BIN = path.join(config.pearDir, 'bin')
|
||||
const isWin = process.platform === 'win32'
|
||||
|
||||
Reference in New Issue
Block a user