mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-08-29 10:43:56 +00:00
Make New window
a duplicate of the parent window
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user