From 33e30d66c737cb347f31a71066117c373de2ebcf Mon Sep 17 00:00:00 2001 From: Nico Jeske Date: Tue, 27 Feb 2024 19:25:58 +0100 Subject: [PATCH] fix: :bug: Remove ; in function parameter The whole event is the parameter of the registerEvent function. Therefore a ; is incorrect here --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index 918a1c8..ac02052 100644 --- a/main.ts +++ b/main.ts @@ -30,7 +30,7 @@ export default class MouseWheelZoomPlugin extends Plugin { async onload() { await this.loadSettings(); this.registerEvent( - this.app.workspace.on("window-open", (newWindow: WorkspaceWindow) => this.registerEvents(newWindow.win)); + this.app.workspace.on("window-open", (newWindow: WorkspaceWindow) => this.registerEvents(newWindow.win)) ); this.registerEvents(window);