mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-05 09:10:53 +01:00
just use adapter
This commit is contained in:
parent
2870b7472b
commit
dcef50bd8f
@ -28,7 +28,7 @@ export class LowdbStorageService implements StorageService {
|
||||
this.db = lowdb(adapter);
|
||||
} catch (e) {
|
||||
if (e instanceof SyntaxError) {
|
||||
fs.writeFileSync(this.dataFilePath, '');
|
||||
adapter.write({});
|
||||
this.db = lowdb(adapter);
|
||||
} else {
|
||||
throw e;
|
||||
|
Loading…
Reference in New Issue
Block a user