pinokiod 3.215.0 → 3.216.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/bin/browserless.js +2 -2
- package/kernel/bin/setup.js +1 -1
- package/package.json +1 -1
- package/server/index.js +7 -2
- package/server/views/install.ejs +2 -0
|
@@ -2,12 +2,12 @@ class Browserless {
|
|
|
2
2
|
description = "The headless Chrome/Chromium driver"
|
|
3
3
|
async uninstall(req, ondata) {
|
|
4
4
|
await this.kernel.bin.exec({
|
|
5
|
-
message: "
|
|
5
|
+
message: "pnpm uninstall -g @browserless/cli"
|
|
6
6
|
}, ondata)
|
|
7
7
|
}
|
|
8
8
|
async install(req, ondata) {
|
|
9
9
|
await this.kernel.bin.exec({
|
|
10
|
-
message: "
|
|
10
|
+
message: "pnpm install -g @browserless/cli"
|
|
11
11
|
}, ondata)
|
|
12
12
|
}
|
|
13
13
|
async installed() {
|
package/kernel/bin/setup.js
CHANGED
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -7989,9 +7989,14 @@ class Server {
|
|
|
7989
7989
|
res.json({ success: true })
|
|
7990
7990
|
}
|
|
7991
7991
|
}))
|
|
7992
|
-
this.app.get("/bin_ready", ex((req, res) => {
|
|
7992
|
+
this.app.get("/bin_ready", ex(async (req, res) => {
|
|
7993
7993
|
if (this.kernel.bin && !this.kernel.bin.requirements_pending) {
|
|
7994
|
-
|
|
7994
|
+
let code_exists = await this.kernel.exists("plugin/code")
|
|
7995
|
+
if (code_exists) {
|
|
7996
|
+
res.json({ success: true })
|
|
7997
|
+
} else {
|
|
7998
|
+
res.json({ success: false })
|
|
7999
|
+
}
|
|
7995
8000
|
} else {
|
|
7996
8001
|
res.json({ success: false })
|
|
7997
8002
|
}
|
package/server/views/install.ejs
CHANGED
|
@@ -356,6 +356,7 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
356
356
|
}
|
|
357
357
|
})
|
|
358
358
|
})
|
|
359
|
+
LoadingDialog.start("Restarting...")
|
|
359
360
|
fetch("/restart", {
|
|
360
361
|
method: "post"
|
|
361
362
|
}, () => {
|
|
@@ -367,6 +368,7 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
367
368
|
})
|
|
368
369
|
if (res.success) {
|
|
369
370
|
//location.href = location.href
|
|
371
|
+
LoadingDialog.end()
|
|
370
372
|
location.href = document.querySelector("#callback").value
|
|
371
373
|
}
|
|
372
374
|
} catch (e) {
|