pinokiod 3.233.0 → 3.234.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.233.0",
3
+ "version": "3.234.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -3042,7 +3042,7 @@ class Server {
3042
3042
 
3043
3043
  if (this.theme === "dark") {
3044
3044
  this.colors = {
3045
- color: "rgb(27, 28, 29)",
3045
+ color: "#252527",
3046
3046
  // symbolColor: "white"
3047
3047
  symbolColor: "#F4F4F4"
3048
3048
  // color: "rgb(31, 29, 39)",
@@ -4212,7 +4212,9 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
4212
4212
  const devTab = document.querySelector('#devtab.frame-link')
4213
4213
  if (!triggeredByUser && !resolvedByGlobalSelector && !target && devRouteActive && devTab) {
4214
4214
  const defaultCandidate = getDefaultSelection()
4215
- if (!(pluginLaunchActive && defaultCandidate)) {
4215
+ if (pluginLaunchActive && defaultCandidate) {
4216
+ target = defaultCandidate
4217
+ } else {
4216
4218
  target = devTab
4217
4219
  }
4218
4220
  }
@@ -1233,7 +1233,7 @@ document.querySelector("#reset-label").addEventListener("click", async (e) => {
1233
1233
  location.href = "/net/" + res.peer_name
1234
1234
  } else {
1235
1235
  console.log("> 2")
1236
- location.href = location.href
1236
+ location.reload()
1237
1237
  }
1238
1238
  }
1239
1239
  } catch (e) {
@@ -1242,7 +1242,7 @@ document.querySelector("#reset-label").addEventListener("click", async (e) => {
1242
1242
  }, 1000)
1243
1243
  } else if (r.error) {
1244
1244
  alert(r.error)
1245
- location.href = location.href
1245
+ location.reload()
1246
1246
  }
1247
1247
  }
1248
1248
 
@@ -1397,7 +1397,7 @@ document.querySelector("main").addEventListener("click", async (e) => {
1397
1397
  location.href = "/net/" + res.peer_name
1398
1398
  } else {
1399
1399
  console.log("> 2")
1400
- location.href = location.href
1400
+ location.reload()
1401
1401
  }
1402
1402
  }
1403
1403
  } catch (e) {
@@ -1406,7 +1406,7 @@ document.querySelector("main").addEventListener("click", async (e) => {
1406
1406
  }, 1000)
1407
1407
  } else if (r.error) {
1408
1408
  alert(r.error)
1409
- location.href = location.href
1409
+ location.reload()
1410
1410
  }
1411
1411
  return
1412
1412
  }
@@ -1431,7 +1431,7 @@ document.querySelector("main").addEventListener("click", async (e) => {
1431
1431
  }).then((res) => {
1432
1432
  return res.json()
1433
1433
  })
1434
- location.href = location.href
1434
+ location.reload()
1435
1435
  return
1436
1436
  }
1437
1437
 
@@ -1455,7 +1455,7 @@ document.querySelector("main").addEventListener("click", async (e) => {
1455
1455
  }).then((res) => {
1456
1456
  return res.json()
1457
1457
  })
1458
- location.href = location.href
1458
+ location.reload()
1459
1459
  }
1460
1460
 
1461
1461
  if (e.target.classList.contains("wifi-qr")) {
@@ -1510,7 +1510,7 @@ if (document.querySelector("#forward")) {
1510
1510
  return res.json()
1511
1511
  })
1512
1512
  console.log(res)
1513
- location.href = location.href
1513
+ location.reload()
1514
1514
  })
1515
1515
  }
1516
1516
  <% } else { %>
@@ -1530,7 +1530,7 @@ if (document.querySelector("#wifi")) {
1530
1530
  return res.json()
1531
1531
  })
1532
1532
  console.log(res)
1533
- location.href = location.href
1533
+ location.reload()
1534
1534
  })
1535
1535
  }
1536
1536
  <% } %>
@@ -1544,7 +1544,7 @@ setInterval(() => {
1544
1544
  if (res.install_required) {
1545
1545
  location.href = "/setup/network?callback=/network"
1546
1546
  } else {
1547
- location.href = location.href
1547
+ location.reload()
1548
1548
  }
1549
1549
  }
1550
1550
  })
@@ -1556,7 +1556,7 @@ interval = setInterval(() => {
1556
1556
  return res.json()
1557
1557
  }).then((res) => {
1558
1558
  if (res.updated) {
1559
- location.href = location.href
1559
+ location.reload()
1560
1560
  }
1561
1561
  })
1562
1562
  }, 2000)