mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-29 16:08:53 +01:00
add mobile download page :3
This commit is contained in:
parent
f833a6b095
commit
e5ae26293c
1 changed files with 2 additions and 1 deletions
|
@ -47,12 +47,13 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
color: await modules
|
color: await modules
|
||||||
.getColors(`https://i.ytimg.com/vi/${v}/maxresdefault.jpg`)
|
.getColors(`https://i.ytimg.com/vi/${v}/maxresdefault.jpg`)
|
||||||
.then((colors) => colors[0].hex()),
|
.then((colors) => colors[0].hex()),
|
||||||
|
isMobile: req.useragent.isMobile,
|
||||||
});
|
});
|
||||||
} catch {
|
} catch {
|
||||||
res.redirect("/");
|
res.redirect("/");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/old/watch", async function (req, res) {
|
app.get("/old/watch", async function (req, res) {
|
||||||
var v = req.query.v;
|
var v = req.query.v;
|
||||||
var e = req.query.e;
|
var e = req.query.e;
|
||||||
|
|
Loading…
Reference in a new issue