Handle template loading better

This commit is contained in:
1ilit
2023-12-24 03:06:49 +02:00
parent 78ce0839d8
commit b9fbcfb9b6
3 changed files with 29 additions and 15 deletions

View File

@@ -702,8 +702,8 @@ export default function ControlPanel({
});
};
const createNewDiagram = (id) => {
localStorage.setItem("args", `${id}`);
window.open("/editor", "_blank");
const newWindow = window.open("/editor");
newWindow.name = "lt " + id;
};
const menu = {