From 9b78fac7410d12fd1fd7d13fa09cbba55641913a Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Wed, 17 Apr 2024 17:35:42 +0000 Subject: [PATCH] mb --- src/libpoketube/init/superinit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libpoketube/init/superinit.js b/src/libpoketube/init/superinit.js index 7a55ef8a..5ac7a1ce 100644 --- a/src/libpoketube/init/superinit.js +++ b/src/libpoketube/init/superinit.js @@ -27,7 +27,7 @@ function init(app, config, rendertemplate) { app.get("/*", function (req, res, next) { if (didstart) return next(); - const userAgent = req.headers['user-agent']; + const userAgent = req.useragent.source if (userAgent && (userAgent.includes('MSIE') || userAgent.includes('Trident'))) { const htmlContent = `Browser is not supported :p

Heyo :3


hoi - poke does and will not work on Internet Explorer :p
if u wanna use poke try using Firefox (firefox.com) or Chromium :3
love u :3

`; res.send(htmlContent);