Skip to content

Free, simple, and intuitive online database diagram editor and SQL generator.

Make `New window` a duplicate of the parent window

1ilitf6199cfd9784
diff --git a/src/components/ControlPanel.jsx b/src/components/ControlPanel.jsx
index 246b215d..5e6de520 100644
--- a/src/components/ControlPanel.jsx
+++ b/src/components/ControlPanel.jsx
@@ -713,7 +713,10 @@ export default function ControlPanel({
function: () => setVisible(MODAL.NEW),
},
"New window": {
- function: () => window.open("/editor", "_blank"),
+ function: () => {
+ const newWindow = window.open("/editor", "_blank");
+ newWindow.name = window.name;
+ },
},
Open: {
function: open,