Explorar o código

fixing async problem

Raanan Weber %!s(int64=7) %!d(string=hai) anos
pai
achega
3046df7c2b
Modificáronse 1 ficheiros con 1 adicións e 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();
 });