mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-01 10:07:24 +01:00
isMobile
This commit is contained in:
parent
4304cab592
commit
f84e66c3e8
1 changed files with 2 additions and 0 deletions
|
@ -246,6 +246,8 @@ app.get("/discover", async function (req, res) {
|
||||||
const k = JSON.parse(toJson(h));
|
const k = JSON.parse(toJson(h));
|
||||||
renderTemplate(res, req, "main.ejs", {
|
renderTemplate(res, req, "main.ejs", {
|
||||||
k: k,
|
k: k,
|
||||||
|
isMobile:req.useragent.isMobile
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue