From f84e66c3e8011aa159194a742aff6f7d9c3748f3 Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 12 Aug 2022 15:04:09 +0300 Subject: [PATCH] isMobile --- server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.js b/server.js index def40baf..6df6228c 100644 --- a/server.js +++ b/server.js @@ -246,6 +246,8 @@ app.get("/discover", async function (req, res) { const k = JSON.parse(toJson(h)); renderTemplate(res, req, "main.ejs", { k: k, + isMobile:req.useragent.isMobile + }); });