Better x3dom loading
No more warnings due to x3dom not yet loaded
This commit is contained in:
Binary file not shown.
@ -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>
|
||||||
'''
|
'''
|
||||||
|
Reference in New Issue
Block a user