Use new Rust bindings
This commit is contained in:
parent
b2a8db14b6
commit
b6d94bce0b
3 changed files with 30 additions and 34 deletions
|
|
@ -32,6 +32,8 @@ export default class SyncPlugin extends Plugin {
|
|||
)
|
||||
);
|
||||
|
||||
lib.setPanicHook();
|
||||
|
||||
const database = new Database(
|
||||
await this.loadData(),
|
||||
this.saveData.bind(this)
|
||||
|
|
@ -106,7 +108,7 @@ export default class SyncPlugin extends Plugin {
|
|||
|
||||
this.registerView(
|
||||
HistoryView.TYPE,
|
||||
(leaf) => new HistoryView(leaf, this.history)
|
||||
(leaf) => new HistoryView(leaf, database, this.history)
|
||||
);
|
||||
this.registerView(LogsView.TYPE, (leaf) => new LogsView(leaf));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue