From 49b8ce051837d2fa78152964fbc8e6d93fa4251e Mon Sep 17 00:00:00 2001 From: Astra Date: Tue, 15 May 2018 17:41:54 -0400 Subject: [PATCH] a --- app/index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/index.html b/app/index.html index 46e6a21..0d3560f 100644 --- a/app/index.html +++ b/app/index.html @@ -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;