mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 09:58:14 +01:00
mb
This commit is contained in:
parent
b347c99358
commit
9b78fac741
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ function init(app, config, rendertemplate) {
|
||||||
app.get("/*", function (req, res, next) {
|
app.get("/*", function (req, res, next) {
|
||||||
if (didstart) return next();
|
if (didstart) return next();
|
||||||
|
|
||||||
const userAgent = req.headers['user-agent'];
|
const userAgent = req.useragent.source
|
||||||
if (userAgent && (userAgent.includes('MSIE') || userAgent.includes('Trident'))) {
|
if (userAgent && (userAgent.includes('MSIE') || userAgent.includes('Trident'))) {
|
||||||
const htmlContent = `<!DOCTYPE html><html><head><title>Browser is not supported :p</title><style>body{margin-left:auto;margin-right:auto;display:flex;max-width:43em;font-family:sans-serif;}</style></head><body><h1>Heyo :3</h1><br><p style="margin-top:4em;margin-left:-7.4em;">hoi - poke does and <b>will not work</b> on Internet Explorer :p<br>if u wanna use poke try using Firefox (firefox.com) or Chromium :3<br>love u :3</p></body></html>`;
|
const htmlContent = `<!DOCTYPE html><html><head><title>Browser is not supported :p</title><style>body{margin-left:auto;margin-right:auto;display:flex;max-width:43em;font-family:sans-serif;}</style></head><body><h1>Heyo :3</h1><br><p style="margin-top:4em;margin-left:-7.4em;">hoi - poke does and <b>will not work</b> on Internet Explorer :p<br>if u wanna use poke try using Firefox (firefox.com) or Chromium :3<br>love u :3</p></body></html>`;
|
||||||
res.send(htmlContent);
|
res.send(htmlContent);
|
||||||
|
|
Loading…
Reference in a new issue