Better x3dom loading

No more warnings due to x3dom not yet loaded
This commit is contained in:
adam-urbanczyk
2017-12-22 12:11:18 +01:00
parent c5cffb6d56
commit 3979aabe70
2 changed files with 1 additions and 5 deletions

Binary file not shown.

View File

@ -29,14 +29,10 @@ BOILERPLATE = \
}} }}
head.insertBefore(scr, head.lastChild); head.insertBefore(scr, head.lastChild);
}} }}
else {{ else if (typeof x3dom != 'undefined') {{ //call reload only if x3dom already loaded
x3dom.reload(); x3dom.reload();
}} }}
//$(document).ready(function() {{
// x3dom.reload();
//}})
//document.getElementById('{id}').runtime.fitAll() //document.getElementById('{id}').runtime.fitAll()
</script> </script>
''' '''