mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-17 22:44:21 +01:00
added standard, ci and format fixes (#76)
Co-authored-by: rafapaezbas <rafa@holepunch.com>
This commit is contained in:
@@ -236,7 +236,6 @@ customElements.define('developer-tooling', class extends HTMLElement {
|
||||
this.initServer()
|
||||
})
|
||||
|
||||
|
||||
const shouldLoadApp = Pear.config.linkData?.startsWith('devtools/')
|
||||
if (shouldLoadApp) {
|
||||
this.addApp(Pear.config.linkData)
|
||||
@@ -327,7 +326,9 @@ customElements.define('developer-tooling', class extends HTMLElement {
|
||||
this.render()
|
||||
this.changePortFormElem.classList.add('hidden')
|
||||
})
|
||||
this.devtoolsHttpServer.on('error', err => this.changePortErrorElem.textContent = err?.message)
|
||||
this.devtoolsHttpServer.on('error', err => {
|
||||
this.changePortErrorElem.textContent = err?.message
|
||||
})
|
||||
this.devtoolsHttpServer.on('request', (req, res) => {
|
||||
if (req.url !== '/json/list') {
|
||||
res.writeHead(404)
|
||||
|
||||
Reference in New Issue
Block a user