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 +1 -1
- package/server/index.js +1 -1
- package/server/views/app.ejs +3 -1
- package/server/views/network.ejs +10 -10
package/package.json
CHANGED
package/server/index.js
CHANGED
package/server/views/app.ejs
CHANGED
|
@@ -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 (
|
|
4215
|
+
if (pluginLaunchActive && defaultCandidate) {
|
|
4216
|
+
target = defaultCandidate
|
|
4217
|
+
} else {
|
|
4216
4218
|
target = devTab
|
|
4217
4219
|
}
|
|
4218
4220
|
}
|
package/server/views/network.ejs
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
1559
|
+
location.reload()
|
|
1560
1560
|
}
|
|
1561
1561
|
})
|
|
1562
1562
|
}, 2000)
|