2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00

json file should open the folder instead

This commit is contained in:
Ankit Singhaniya 2021-12-15 00:08:05 +05:30 committed by Alan
parent a303b6011b
commit 3f8e058066

View File

@ -4,6 +4,6 @@ import { shell } from 'electron';
export default async function makeJSON(data, savePath) {
fs.writeFile(savePath, data, (error) => {
if (error) throw error;
return shell.openPath(savePath);
return shell.showItemInFolder(savePath);
});
}