Skip to content

Commit 4705b36

Browse files
committed
toolbar functions modified
1 parent 758a243 commit 4705b36

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/toolbarActions/toolbarFunctions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ async function saveGraphMLFile(state) {
8888
const stream = await graph.fileHandle.createWritable();
8989
await stream.write(getGraphFun(state).saveToFolder());
9090
await stream.close();
91+
} else if (state.fileHandle === null) {
92+
getGraphFun(state).saveWithoutFileHandle();
9193
} else {
9294
// eslint-disable-next-line no-alert
9395
alert('Switch to Edge/Chrome!');

0 commit comments

Comments
 (0)