pinokiod 3.15.8 → 3.15.9

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.
@@ -197,6 +197,7 @@ class Bin {
197
197
  return e
198
198
  }
199
199
  async init() {
200
+ console.log(">>>>>>>> bin.init")
200
201
  this.mods = []
201
202
  if (this.kernel.homedir) {
202
203
  const bin_folder = this.path()
@@ -295,6 +296,7 @@ class Bin {
295
296
 
296
297
  for(let mod of this.mods) {
297
298
  if (mod.mod.start) {
299
+ console.log("mod.start", mod)
298
300
  await mod.mod.start()
299
301
  }
300
302
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.15.8",
3
+ "version": "3.15.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -308,10 +308,29 @@ document.addEventListener("DOMContentLoaded", async () => {
308
308
  }
309
309
  })
310
310
  })
311
+ fetch("/restart", {
312
+ method: "post"
313
+ }, () => {
314
+ })
315
+ setInterval(async () => {
316
+ try {
317
+ let res = await fetch("/check").then((res) => {
318
+ return res.json()
319
+ })
320
+ if (res.success) {
321
+ //location.href = location.href
322
+ location.href = document.querySelector("#callback").value
323
+ }
324
+ } catch (e) {
325
+ console.log(e)
326
+ }
327
+ }, 1000)
311
328
  // let ok = confirm("Install Complete! Click OK to Proceed.")
312
329
  // if (ok) {
313
- location.href = document.querySelector("#callback").value
314
330
  // }
331
+
332
+
333
+ // location.href = document.querySelector("#callback").value
315
334
  })
316
335
  </script>
317
336
  </body>