root 2 年之前
父节点
当前提交
49906fa9e0
共有 1 个文件被更改,包括 17 次插入17 次删除
  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;