pinokiod 3.57.0 → 3.59.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 +4 -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", {
|
|
@@ -2945,11 +2946,13 @@ class Server {
|
|
|
2945
2946
|
|
|
2946
2947
|
this.app.use((req, res, next) => {
|
|
2947
2948
|
const userAgent = req.get('User-Agent') || '';
|
|
2949
|
+
console.log("userAgent", userAgent)
|
|
2948
2950
|
if (userAgent.includes("Pinokio")) {
|
|
2949
2951
|
req.agent = "electron"
|
|
2950
2952
|
} else {
|
|
2951
|
-
req.agent = "
|
|
2953
|
+
req.agent = "web"
|
|
2952
2954
|
}
|
|
2955
|
+
console.log("req.agent", req.agent)
|
|
2953
2956
|
next();
|
|
2954
2957
|
})
|
|
2955
2958
|
|