Skip to content

Commit f0b48bc

Browse files
committed
alert relocated
1 parent 7e4e655 commit f0b48bc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/graph-builder/graph-core/5-load-save.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ class GraphLoadSave extends GraphUndoRedo {
149149
const stream = await handle.createWritable();
150150
await stream.write(blob);
151151
await stream.close();
152+
// eslint-disable-next-line no-alert
153+
alert('File saved Successfully');
152154
}
153155

154156
saveToFolder() {

src/toolbarActions/toolbarFunctions.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ async function saveGraphMLFile(state) {
9292
alert('File saved Successfully');
9393
} else if (graph.fileHandle === null) {
9494
getGraphFun(state).saveWithoutFileHandle();
95-
// eslint-disable-next-line no-alert
96-
alert('File saved Successfully');
9795
} else {
9896
// eslint-disable-next-line no-alert
9997
alert('Switch to Edge/Chrome!');

0 commit comments

Comments
 (0)