mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-22 07:58:11 +08:00
Add frontend file structure docs and some related cleanup
This commit is contained in:
@@ -23,7 +23,7 @@ export function createPortfolioState(editor: Editor) {
|
||||
state.activeDocumentIndex = activeId;
|
||||
});
|
||||
editor.subscriptions.subscribeJsMessage(TriggerFileUpload, async () => {
|
||||
const extension = editor.raw.file_save_suffix();
|
||||
const extension = editor.instance.file_save_suffix();
|
||||
const data = await upload(extension);
|
||||
editor.instance.open_document_file(data.filename, data.content);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user