2
0
mirror of https://github.com/frappe/books.git synced 2025-01-11 02:36:14 +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) { export default async function makeJSON(data, savePath) {
fs.writeFile(savePath, data, (error) => { fs.writeFile(savePath, data, (error) => {
if (error) throw error; if (error) throw error;
return shell.openPath(savePath); return shell.showItemInFolder(savePath);
}); });
} }