mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 10:38:25 +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!"
|
"also try invidious!"
|
||||||
]
|
]
|
||||||
|
|
||||||
const random =
|
|
||||||
splash[Math.floor(Math.random() * splash.length)];
|
|
||||||
|
|
||||||
|
|
||||||
function getJson(str) {
|
function getJson(str) {
|
||||||
|
@ -96,6 +95,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
|
|
||||||
app.get("/:v*?", async function (req, res) {
|
app.get("/:v*?", async function (req, res) {
|
||||||
const uaos = req.useragent.os;
|
const uaos = req.useragent.os;
|
||||||
|
const random = splash[Math.floor(Math.random() * splash.length)];
|
||||||
const browser = req.useragent.browser;
|
const browser = req.useragent.browser;
|
||||||
const isOldWindows = (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox";
|
const isOldWindows = (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue