root 2 lat temu
rodzic
commit
49906fa9e0
1 zmienionych plików z 17 dodań i 17 usunięć
  1. 17 17
      src/components/App.tsx

+ 17 - 17
src/components/App.tsx

@@ -5577,22 +5577,22 @@ declare global {
   }
   }
 }
 }
 
 
-if (
-  process.env.NODE_ENV === ENV.TEST ||
-  process.env.NODE_ENV === ENV.DEVELOPMENT
-) {
-  window.h = window.h || ({} as Window["h"]);
-
-  Object.defineProperties(window.h, {
-    elements: {
-      configurable: true,
-      get() {
-        return this.app.scene.getElementsIncludingDeleted();
-      },
-      set(elements: ExcalidrawElement[]) {
-        return this.app.scene.replaceAllElements(elements);
-      },
+// if (
+//   process.env.NODE_ENV === ENV.TEST ||
+//   process.env.NODE_ENV === ENV.DEVELOPMENT
+// ) {
+window.h = window.h || ({} as Window["h"]);
+
+Object.defineProperties(window.h, {
+  elements: {
+    configurable: true,
+    get() {
+      return this.app.scene.getElementsIncludingDeleted();
     },
     },
-  });
-}
+    set(elements: ExcalidrawElement[]) {
+      return this.app.scene.replaceAllElements(elements);
+    },
+  },
+});
+//}
 export default App;
 export default App;