From 4ac3dfafd9eb2e6d8904d55fd4792a9875faf8ad Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 10 Mar 2023 17:34:11 +0000 Subject: [PATCH] re-add support for opera FOR NOW --- src/libpoketube/init/superinit.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/libpoketube/init/superinit.js b/src/libpoketube/init/superinit.js index 0f8893c7..ca3d90fb 100644 --- a/src/libpoketube/init/superinit.js +++ b/src/libpoketube/init/superinit.js @@ -9,18 +9,6 @@ function init(app, config, rendertemplate) { app.get("/*", function (req, res, next) { if (didstart) return next(); - const userAgent = req.useragent.source; - if ( - userAgent.includes("Opera") || - userAgent.includes("OPR") || - userAgent.includes("OPRGX") - ) { - // Browser agent is Opera, Opera GX or OPRGX - res.redirect("https://www.mozilla.org/en-US/firefox/all/"); - } else { - // Browser agent is not Opera, Opera GX or OPRGX - next(); - } return rendertemplate(res, req, "timeout.ejs"); });