mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
check for null path
This commit is contained in:
@@ -117,10 +117,12 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
|
||||
remote.dialog.showSaveDialog(remote.getCurrentWindow(), {
|
||||
defaultPath: fileName,
|
||||
showsTagField: false,
|
||||
}, (filename) => {
|
||||
fs.writeFile(filename, Buffer.from(blobData), (err) => {
|
||||
// error check?
|
||||
});
|
||||
}, (path) => {
|
||||
if (path != null) {
|
||||
fs.writeFile(path, Buffer.from(blobData), (err) => {
|
||||
// error check?
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user