启动代码放到html页面中。

This commit is contained in:
liteng 2018-06-10 13:57:59 +08:00
parent d5c12f679d
commit fcaead85f5
2 changed files with 6 additions and 7 deletions

View File

@ -11,7 +11,6 @@
</head>
<body>
<div></div>
<script src="node_modules/three/build/three.js"></script>
<script src="third_party/system.min.js"></script>
@ -92,7 +91,12 @@
<script src="third_party/html2canvas.js"></script>
<script src="third_party/three.html.js"></script>
<script src="dist/ShadowEditor.js"></script>
<script src="js/index.js"></script>
<script>
var app = null;
window.onload = function () {
app = new Shadow.Application();
};
</script>
</body>
</html>

View File

@ -1,5 +0,0 @@
var app = null;
window.onload = function () {
app = new Shadow.Application();
};