Explorar el Código

fixing async problem

Raanan Weber hace 7 años
padre
commit
3046df7c2b
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      Viewer/src/index.ts

+ 1 - 2
Viewer/src/index.ts

@@ -22,8 +22,7 @@ import { InitTags } from './initializer';
 global.Promise = Promise || require('es6-promise').Promise;
 
 export let disableInit: boolean = false;
-
-setTimeout(() => {
+document.addEventListener("DOMContentLoaded", function (event) {
     if (disableInit) return;
     InitTags();
 });