mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 07:58:13 +01:00
lol
Signed-off-by: Ashley <iamashley@duck.com>
This commit is contained in:
parent
3688d38055
commit
21259a2225
1 changed files with 3 additions and 3 deletions
|
@ -40,8 +40,7 @@ const splash = [
|
|||
"also try invidious!"
|
||||
]
|
||||
|
||||
const random =
|
||||
splash[Math.floor(Math.random() * splash.length)];
|
||||
|
||||
|
||||
|
||||
function getJson(str) {
|
||||
|
@ -96,6 +95,7 @@ module.exports = function (app, config, renderTemplate) {
|
|||
|
||||
app.get("/:v*?", async function (req, res) {
|
||||
const uaos = req.useragent.os;
|
||||
const random = splash[Math.floor(Math.random() * splash.length)];
|
||||
const browser = req.useragent.browser;
|
||||
const isOldWindows = (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox";
|
||||
|
||||
|
@ -119,4 +119,4 @@ module.exports = function (app, config, renderTemplate) {
|
|||
|
||||
return rendermainpage();
|
||||
});
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue