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

View file

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