瀏覽代碼

//fixed a bug where the safe mode was not working when creating a new playground

DEV-UNITY-6\Utilisateur 6 年之前
父節點
當前提交
3f829688c6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Playground/js/main.js

+ 2 - 2
Playground/js/main.js

@@ -606,8 +606,8 @@ class Main {
     };
 
     checkSafeMode(message) {
-        if (document.getElementById("safemodeToggle" + this.parent.getCurrentSize) &&
-            document.getElementById("safemodeToggle" + this.parent.getCurrentSize).classList.contains('checked')) {
+        if (document.getElementById("safemodeToggle" + this.parent.utils.getCurrentSize()) &&
+            document.getElementById("safemodeToggle" + this.parent.utils.getCurrentSize()).classList.contains('checked')) {
             let confirm = window.confirm(message);
             if (!confirm) {
                 return false;