We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc89df3 commit d877cb8Copy full SHA for d877cb8
1 file changed
src/graph-builder/graph-core/5-load-save.js
@@ -126,9 +126,15 @@ class GraphLoadSave extends GraphUndoRedo {
126
const fileName = prompt('Filename:');
127
saveAs(blob, `${fileName || `${this.getName()}-concore`}.graphml`);
128
}
129
+ toast.success('File saved Successfully');
130
131
132
async saveWithoutFileHandle() {
133
+ const { userAgent } = navigator;
134
+ if (userAgent.match(/firefox|fxios/i)) {
135
+ toast.info('Switch to Edge/Chrome!');
136
+ return;
137
+ }
138
const str = graphmlBuilder(this.jsonifyGraph());
139
const bytes = new TextEncoder().encode(str);
140
const blob = new Blob([bytes], { type: 'application/json;charset=utf-8' });
0 commit comments