mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-18 23:14:25 +01:00
Linting
This commit is contained in:
@@ -129,7 +129,7 @@ customElements.define('devtools-inspector', class extends HTMLElement {
|
|||||||
const app = this.apps.get(sessionId)
|
const app = this.apps.get(sessionId)
|
||||||
if (!app) return devtoolsSocket.destroy()
|
if (!app) return devtoolsSocket.destroy()
|
||||||
|
|
||||||
const { publicKey, inspectorSession } = app
|
const { inspectorSession } = app
|
||||||
|
|
||||||
const onMessage = msg => {
|
const onMessage = msg => {
|
||||||
const { pearInspectMethod } = 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
|
// Can't use `uuid` module for some reason as it results in a throw with `crypto` when importing
|
||||||
function generateUuid () {
|
function generateUuid () {
|
||||||
var result, i, j
|
let result, i, j
|
||||||
result = ''
|
result = ''
|
||||||
for (j = 0; j < 32; j++) {
|
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 + '-'
|
result = result + '-'
|
||||||
|
}
|
||||||
i = Math.floor(Math.random() * 16).toString(16)
|
i = Math.floor(Math.random() * 16).toString(16)
|
||||||
result = result + i
|
result = result + i
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user