diff --git a/css/app.js b/css/app.js
index 1648d8ce..e97d91e4 100644
--- a/css/app.js
+++ b/css/app.js
@@ -70,13 +70,35 @@ document.addEventListener('DOMContentLoaded', function() {
window.addEventListener('resize', lazyLoadBg);
});
-const htmlContent = `
Browser is not supported :pHeyo :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
`;
+(function () {
+ var isIE = !!document.documentMode || /MSIE \d|Trident.*rv:/.test(navigator.userAgent);
+ if (!isIE) return;
- if (/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
- document.open();
- document.write(htmlContent);
+ var html = '' +
+ '' +
+ 'Browser Not Supported' +
+ '' +
+ 'Heyo :3
' +
+ 'hoi — poke does and will not work on Internet Explorer.
' +
+ 'If u wanna use poke, try Firefox or Chromium instead.
' +
+ 'love u :3
' +
+ '';
+
+ try {
+ document.open('text/html','replace');
+ document.write(html);
document.close();
-}
+ } catch (e) {
+ document.documentElement.innerHTML = html;
+ }
+})();
// Fade in elements on scroll or fullscreen change
function fadeInElements() {