Update src/libpoketube/init/pages-404-and-main.js
This commit is contained in:
parent
cec653d921
commit
6c698153b6
@ -37,7 +37,10 @@ module.exports = function (app, config, renderTemplate) {
|
||||
app.get("/app", async function (req, res) {
|
||||
const { fetch } = await import("undici");
|
||||
|
||||
if (req.useragent?.isMobile) {
|
||||
const isMobile = req.useragent?.isMobile;
|
||||
const currentTab = req.query.tab;
|
||||
|
||||
if (isMobile && currentTab !== "search") {
|
||||
return res.redirect("/app?tab=search");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user