mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-04-12 03:48:42 +00:00
Fixed:
- No longer unexpected `Unhandled Rejections` during P2P operations (waiting acceptance). CLI new features - P2P sync has been implemented.
This commit is contained in:
@@ -101,9 +101,7 @@ class NodeFileKeyValueDatabase implements KeyValueDatabase {
|
||||
private load() {
|
||||
try {
|
||||
const loaded = JSON.parse(nodeFs.readFileSync(this.filePath, "utf-8")) as Record<string, unknown>;
|
||||
this.data = new Map(
|
||||
Object.entries(loaded).map(([key, value]) => [key, deserializeFromNodeKV(value)])
|
||||
);
|
||||
this.data = new Map(Object.entries(loaded).map(([key, value]) => [key, deserializeFromNodeKV(value)]));
|
||||
} catch {
|
||||
this.data = new Map();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user