commit
01493bd37a
2
main.js
2
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);
|
||||
|
Loading…
Reference in New Issue
Block a user