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);