Browse Source

Fix zip download

David Catuhe 5 years ago
parent
commit
ab886f24c9
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Playground/js/main.js

+ 1 - 3
Playground/js/main.js

@@ -131,10 +131,8 @@ compileAndRun = function(parent, fpsLabel) {
                     : defaultEngineZip;
                     : defaultEngineZip;
 
 
                 parent.zipTool.zipCode =
                 parent.zipTool.zipCode =
-                    code + "\r\n\r\n" +
                     "var engine = " + createEngineZip + ";\r\n" +
                     "var engine = " + createEngineZip + ";\r\n" +
-                    "var scene = " + createSceneFunction + "();";
-
+                    code + "\r\n\r\n";
             }
             }
 
 
             engine = engine;
             engine = engine;