浏览代码

Update index-local.html

Raanan Weber 7 年之前
父节点
当前提交
df36318799
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      Playground/index-local.html

+ 2 - 5
Playground/index-local.html

@@ -447,6 +447,7 @@
         <script src="js/pbt.js"></script>
         <script src="js/pbt.js"></script>
         <script>
         <script>
             BABYLONDEVTOOLS.Loader
             BABYLONDEVTOOLS.Loader
+                .require('node_modules/monaco-editor/min/vs/loader.js')
                 .require('js/index.js')
                 .require('js/index.js')
                 .load(function () {
                 .load(function () {
                     BABYLON.DracoCompression.Configuration.decoder = {
                     BABYLON.DracoCompression.Configuration.decoder = {
@@ -454,12 +455,8 @@
                         wasmBinaryUrl: "../dist/preview%20release/draco_decoder_gltf.wasm",
                         wasmBinaryUrl: "../dist/preview%20release/draco_decoder_gltf.wasm",
                         fallbackUrl: "../dist/preview%20release/draco_decoder_gltf.js"
                         fallbackUrl: "../dist/preview%20release/draco_decoder_gltf.js"
                     };
                     };
-                    var script = document.createElement('script');
-                    script.type = 'text/javascript';
-                    script.src = "node_modules/monaco-editor/min/vs/loader.js";
-                    document.head.appendChild(script);
                 });
                 });
         </script>
         </script>
     </body>
     </body>
 
 
-</html>
+</html>