pinokiod 3.75.0 → 3.77.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 +0 -3
- package/server/public/style.css +7 -1
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -1574,7 +1574,6 @@ class Server {
|
|
|
1574
1574
|
// let list = this.getPeerInfo()
|
|
1575
1575
|
let list = this.getPeers()
|
|
1576
1576
|
|
|
1577
|
-
console.log("agent", req.agent)
|
|
1578
1577
|
if (meta) {
|
|
1579
1578
|
items = running.concat(notRunning)
|
|
1580
1579
|
res.render("index", {
|
|
@@ -2946,13 +2945,11 @@ class Server {
|
|
|
2946
2945
|
|
|
2947
2946
|
this.app.use((req, res, next) => {
|
|
2948
2947
|
const userAgent = req.get('User-Agent') || '';
|
|
2949
|
-
console.log("userAgent", userAgent)
|
|
2950
2948
|
if (userAgent.includes("Pinokio")) {
|
|
2951
2949
|
req.agent = "electron"
|
|
2952
2950
|
} else {
|
|
2953
2951
|
req.agent = "web"
|
|
2954
2952
|
}
|
|
2955
|
-
console.log("req.agent", req.agent)
|
|
2956
2953
|
next();
|
|
2957
2954
|
})
|
|
2958
2955
|
|
package/server/public/style.css
CHANGED
|
@@ -2468,7 +2468,13 @@ body.minimized[data-agent='electron'] header {
|
|
|
2468
2468
|
body[data-agent='electron'] {
|
|
2469
2469
|
padding-top: 26px;
|
|
2470
2470
|
}
|
|
2471
|
+
body.dark #dropdown-portal .dropdown-content {
|
|
2472
|
+
background: rgb(34, 34, 34);
|
|
2473
|
+
}
|
|
2474
|
+
body.dark #dropdown-portal .dropdown-content .btn2 {
|
|
2475
|
+
background: none;
|
|
2476
|
+
}
|
|
2471
2477
|
#dropdown-portal .dropdown-content {
|
|
2472
2478
|
border-radius: 10px;
|
|
2473
|
-
background:
|
|
2479
|
+
background: white;
|
|
2474
2480
|
}
|