This commit is contained in:
Astra 2018-05-15 17:50:06 -04:00
parent 13b4d93ca0
commit d11c87ff88

View file

@ -141,12 +141,12 @@
<script> <script>
// wait until DOM is ready so that error messages can display properly // wait until DOM is ready so that error messages can display properly
window.onload = setTimeout(async () => { window.onload = () => {
setTimeout(() => {
init(); init();
if (gl) animate(); if (gl) animate();
}, 0);
setTimeout(async () => {
// dont try doing anything if running in a browser // dont try doing anything if running in a browser
if (navigator.userAgent.indexOf('discord') == -1) return; if (navigator.userAgent.indexOf('discord') == -1) return;
@ -261,6 +261,8 @@
}, 500); }, 500);
};
</script> </script>
</head> </head>