소스 검색

Playground v4.1.2 fix compileAndRun call.

DEV-UNITY-6\Utilisateur 6 년 전
부모
커밋
4c405ccc5d
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 0
      Playground/js/main.js
  2. 1 1
      Playground/js/settingsPG.js

+ 4 - 0
Playground/js/main.js

@@ -631,6 +631,10 @@ class Main {
         this.parent.monacoCreator.JsEditor.focus();
         this.parent.monacoCreator.JsEditor.focus();
     };
     };
 
 
+    compileAndRunFromOutside() {
+        compileAndRun(this.parent, this.fpsLabel);
+    };
+
     checkSafeMode(message) {
     checkSafeMode(message) {
         if (document.getElementById("safemodeToggle" + this.parent.utils.getCurrentSize()) &&
         if (document.getElementById("safemodeToggle" + this.parent.utils.getCurrentSize()) &&
             document.getElementById("safemodeToggle" + this.parent.utils.getCurrentSize()).classList.contains('checked')) {
             document.getElementById("safemodeToggle" + this.parent.utils.getCurrentSize()).classList.contains('checked')) {

+ 1 - 1
Playground/js/settingsPG.js

@@ -163,7 +163,7 @@ class SettingsPG {
                 localStorage.removeItem("bjs-playground-apiversion");
                 localStorage.removeItem("bjs-playground-apiversion");
                 localStorage.removeItem("bjs-playground-apiversion-tempcode");
                 localStorage.removeItem("bjs-playground-apiversion-tempcode");
 
 
-                this.parent.main.compileAndRun();
+                this.parent.main.compileAndRunFromOutside();
             }.bind(this);
             }.bind(this);
 
 
             document.head.appendChild(newBJSscript);
             document.head.appendChild(newBJSscript);