mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-18 06:54:22 +01:00
Correcting rebase
This commit is contained in:
@@ -203,8 +203,7 @@
|
|||||||
<svg id="logo" width="102" height="146" viewBox="0 0 102 146" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg id="logo" width="102" height="146" viewBox="0 0 102 146" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<g clip-path="url(#clip0_8912_10861)">
|
<g clip-path="url(#clip0_8912_10861)">
|
||||||
<path d="M47.4056 0.838379H54.5943V15.0361H47.4056V0.838379Z" fill="#B0D944" />
|
<path d="M47.4056 0.838379H54.5943V15.0361H47.4056V0.838379Z" fill="#B0D944" />
|
||||||
<path d="M43.8113 19.5305V22.406H36.6226V26.0004H65.3774V22.406H58.1887V16.8347H51V19.5305H43.8113Z"
|
<path d="M43.8113 19.5305V22.406H36.6226V26.0004H65.3774V22.406H58.1887V16.8347H51V19.5305H43.8113Z" fill="#B0D944" />
|
||||||
fill="#B0D944" />
|
|
||||||
<path d="M72.5662 27.7974H51V30.4931H29.4339V36.963H72.5662V27.7974Z" fill="#B0D944" />
|
<path d="M72.5662 27.7974H51V30.4931H29.4339V36.963H72.5662V27.7974Z" fill="#B0D944" />
|
||||||
<path d="M79.7548 38.7593H51V41.455H22.2451V47.9249H79.7548V38.7593Z" fill="#B0D944" />
|
<path d="M79.7548 38.7593H51V41.455H22.2451V47.9249H79.7548V38.7593Z" fill="#B0D944" />
|
||||||
<path d="M79.7548 49.7219H51V52.4177H22.2451V58.8875H79.7548V49.7219Z" fill="#B0D944" />
|
<path d="M79.7548 49.7219H51V52.4177H22.2451V58.8875H79.7548V49.7219Z" fill="#B0D944" />
|
||||||
|
|||||||
@@ -131,27 +131,24 @@ customElements.define('devtools-inspector', class extends HTMLElement {
|
|||||||
|
|
||||||
const { publicKey, inspectorSession } = app
|
const { publicKey, inspectorSession } = app
|
||||||
|
|
||||||
inspectorSession.connect()
|
|
||||||
app.connected = true
|
|
||||||
this.renderApps()
|
|
||||||
|
|
||||||
const onMessage = msg => {
|
const onMessage = msg => {
|
||||||
const { pearInspectMethod } = msg
|
const { pearInspectMethod } = msg
|
||||||
const isACDPMessage = !pearInspectMethod
|
const isACDPMessage = !pearInspectMethod
|
||||||
|
|
||||||
if (isACDPMessage) return devtoolsSocket.send(JSON.stringify(msg))
|
if (isACDPMessage) return devtoolsSocket.send(JSON.stringify(msg))
|
||||||
}
|
}
|
||||||
|
inspectorSession.connect()
|
||||||
inspectorSession.on('message', onMessage)
|
inspectorSession.on('message', onMessage)
|
||||||
devtoolsSocket.on('message', msg => {
|
devtoolsSocket.on('message', msg => inspectorSession.post(JSON.parse(msg)))
|
||||||
inspectorSession.post(JSON.parse(msg))
|
|
||||||
})
|
|
||||||
devtoolsSocket.on('close', () => {
|
devtoolsSocket.on('close', () => {
|
||||||
console.log('devtoolsSocket on(close)')
|
|
||||||
app.connected = false
|
|
||||||
inspectorSession.disconnect()
|
inspectorSession.disconnect()
|
||||||
inspectorSession.off('message', onMessage)
|
inspectorSession.off('message', onMessage)
|
||||||
|
app.connected = false
|
||||||
this.renderApps()
|
this.renderApps()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
app.connected = true
|
||||||
|
this.renderApps()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user