Explorar o código

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

DEV-UNITY-6\Utilisateur %!s(int64=6) %!d(string=hai) anos
pai
achega
3f829688c6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;