check for null path
This commit is contained in:
parent
42dbdb0043
commit
5db115ae43
|
@ -117,10 +117,12 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
|
||||||
remote.dialog.showSaveDialog(remote.getCurrentWindow(), {
|
remote.dialog.showSaveDialog(remote.getCurrentWindow(), {
|
||||||
defaultPath: fileName,
|
defaultPath: fileName,
|
||||||
showsTagField: false,
|
showsTagField: false,
|
||||||
}, (filename) => {
|
}, (path) => {
|
||||||
fs.writeFile(filename, Buffer.from(blobData), (err) => {
|
if (path != null) {
|
||||||
// error check?
|
fs.writeFile(path, Buffer.from(blobData), (err) => {
|
||||||
});
|
// error check?
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue