This commit is contained in:
Astra 2018-05-15 17:41:54 -04:00
parent bffee64f87
commit 49b8ce0518

View file

@ -127,7 +127,7 @@
top: 0%;
left: 50%;
transform: translate(-50%, 0%);
color:#f00;
color: #f00;
font-size: 16px;
}
@ -143,8 +143,10 @@
// wait until DOM is ready so that error messages can display properly
window.onload = async () => {
init();
if (gl) animate();
setTimeout(() => {
init();
if (gl) animate();
}, 0);
// dont try doing anything if running in a browser
if (navigator.userAgent.indexOf('discord') == -1) return;