This commit is contained in:
Tobias Baunbaek
2024-01-26 14:49:57 +01:00
parent ac3be00002
commit 525f97dfe5

View File

@@ -129,7 +129,7 @@ customElements.define('devtools-inspector', class extends HTMLElement {
const app = this.apps.get(sessionId)
if (!app) return devtoolsSocket.destroy()
const { publicKey, inspectorSession } = app
const { inspectorSession } = app
const onMessage = msg => {
const { pearInspectMethod } = msg
@@ -177,11 +177,12 @@ customElements.define('devtools-inspector', class extends HTMLElement {
// Can't use `uuid` module for some reason as it results in a throw with `crypto` when importing
function generateUuid () {
var result, i, j
let result, i, j
result = ''
for (j = 0; j < 32; j++) {
if (j == 8 || j == 12 || j == 16 || j == 20)
if (j === 8 || j === 12 || j === 16 || j === 20) {
result = result + '-'
}
i = Math.floor(Math.random() * 16).toString(16)
result = result + i
}