diff --git a/src/libpoketube/init/superinit.js b/src/libpoketube/init/superinit.js index ec77f0d1..7a55ef8a 100644 --- a/src/libpoketube/init/superinit.js +++ b/src/libpoketube/init/superinit.js @@ -25,9 +25,16 @@ function init(app, config, rendertemplate) { app.get("/*", function (req, res, next) { - if (didstart) return next(); + if (didstart) return next(); - return rendertemplate(res, req, "timeout.ejs"); + const userAgent = req.headers['user-agent']; + if (userAgent && (userAgent.includes('MSIE') || userAgent.includes('Trident'))) { + const htmlContent = `
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