electron app starting

This commit is contained in:
Jan Prochazka
2021-12-16 11:46:33 +01:00
parent 0a7c56dace
commit e636987f31
60 changed files with 132 additions and 129 deletions

View File

@@ -18,10 +18,10 @@ export default function saveTabFile(editor, saveAs, folder, format, fileExtensio
const handleSave = async () => {
if (savedFile) {
await axiosInstance.post('files/save', { folder: savedFolder || folder, file: savedFile, data, format });
await axiosInstance().post('files/save', { folder: savedFolder || folder, file: savedFile, data, format });
}
if (savedFilePath) {
await axiosInstance.post('files/save-as', { filePath: savedFilePath, data, format });
await axiosInstance().post('files/save-as', { filePath: savedFilePath, data, format });
}
};