mirror of https://github.com/keeweb/keeweb.git
fixed storage-file-cache logging and callbacks
This commit is contained in:
parent
a102a5877c
commit
7f9a6a31b7
|
@ -23,6 +23,9 @@ const StorageFileCache = StorageBase.extend({
|
|||
|
||||
const setPath = (err) => {
|
||||
this.path = err ? null : path;
|
||||
if (err) {
|
||||
this.logger.error('Error opening local offline storage', err);
|
||||
}
|
||||
return callback && callback(err);
|
||||
};
|
||||
|
||||
|
@ -30,7 +33,7 @@ const StorageFileCache = StorageBase.extend({
|
|||
if (exists) {
|
||||
setPath();
|
||||
} else {
|
||||
Launcher.mkdir(path, setPath());
|
||||
Launcher.mkdir(path, setPath);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue