diff --git a/main.js b/main.js index 63b33af..ff44818 100644 --- a/main.js +++ b/main.js @@ -662,7 +662,7 @@ const createMainWindow = () => { }); ipcMain.on('open-image', async(event, args) => { - var filename = `${imagesCacheDir}/img_${args.dataset.id}`; + var filename = `${imagesCacheDir}/img_${args.dataset.id}.jpg`; fs.writeFileSync(filename, args.base64.replace(/^data:image\/png;base64,/, ''), 'base64'); shell.openItem(filename);