pinokiod 3.57.0 → 3.58.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 +3 -1
- package/server/public/style.css +0 -3
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -1574,6 +1574,7 @@ class Server {
|
|
|
1574
1574
|
// let list = this.getPeerInfo()
|
|
1575
1575
|
let list = this.getPeers()
|
|
1576
1576
|
|
|
1577
|
+
console.log("agent", req.agent)
|
|
1577
1578
|
if (meta) {
|
|
1578
1579
|
items = running.concat(notRunning)
|
|
1579
1580
|
res.render("index", {
|
|
@@ -2948,8 +2949,9 @@ class Server {
|
|
|
2948
2949
|
if (userAgent.includes("Pinokio")) {
|
|
2949
2950
|
req.agent = "electron"
|
|
2950
2951
|
} else {
|
|
2951
|
-
req.agent = "
|
|
2952
|
+
req.agent = "web"
|
|
2952
2953
|
}
|
|
2954
|
+
console.log("req.agent", req.agent)
|
|
2953
2955
|
next();
|
|
2954
2956
|
})
|
|
2955
2957
|
|