mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-19 22:50:22 +00:00
Added auto-save for graphs. Iteraion 1.
This commit is contained in:
@@ -51,6 +51,8 @@ function handelImportGraph(files) {
|
||||
var textFromFileLoaded = fileLoadedEvent.target.result;
|
||||
console.log(textFromFileLoaded);
|
||||
editor.application.LoadGraphFromString(textFromFileLoaded);
|
||||
// Save graph to auto save after import.
|
||||
editor.application.saveAutoSave(textFromFileLoaded);
|
||||
ImportGraphFiles.value = "";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user