Skip to content

Commit d877cb8

Browse files
committed
Update 5-load-save.js
1 parent cc89df3 commit d877cb8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,15 @@ class GraphLoadSave extends GraphUndoRedo {
126126
const fileName = prompt('Filename:');
127127
saveAs(blob, `${fileName || `${this.getName()}-concore`}.graphml`);
128128
}
129+
toast.success('File saved Successfully');
129130
}
130131

131132
async saveWithoutFileHandle() {
133+
const { userAgent } = navigator;
134+
if (userAgent.match(/firefox|fxios/i)) {
135+
toast.info('Switch to Edge/Chrome!');
136+
return;
137+
}
132138
const str = graphmlBuilder(this.jsonifyGraph());
133139
const bytes = new TextEncoder().encode(str);
134140
const blob = new Blob([bytes], { type: 'application/json;charset=utf-8' });

0 commit comments

Comments
 (0)