Skip to content

Commit e3f559c

Browse files
committed
fix: init slowed Obsidian startup time down
close #72
1 parent 5a654bd commit e3f559c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ export default class ObsidianGit extends Plugin {
9797
window.setInterval(() => this.statusBar.display(), 1000)
9898
);
9999
}
100-
101-
this.init();
100+
this.app.workspace.on("layout-ready", () => this.init());
102101
}
103102

104103
async onunload() {

0 commit comments

Comments
 (0)