diff --git a/main.ts b/main.ts index ab6400b..fcf7cb6 100644 --- a/main.ts +++ b/main.ts @@ -29,7 +29,9 @@ export default class MouseWheelZoomPlugin extends Plugin { async onload() { await this.loadSettings(); - this.app.workspace.on("window-open", (newWindow: WorkspaceWindow) => this.registerEvents(newWindow.win)); + this.registerEvent( + this.app.workspace.on("window-open", (newWindow: WorkspaceWindow) => this.registerEvents(newWindow.win)) + ); this.registerEvents(window); this.addSettingTab(new MouseWheelZoomSettingsTab(this.app, this));