Skip to content

Commit

Permalink
fix: 🐛 Remove ; in function parameter
Browse files Browse the repository at this point in the history
The whole event is the parameter of the registerEvent function. Therefore a ; is incorrect here
  • Loading branch information
nicojeske committed Feb 27, 2024
1 parent fb1ed2b commit 33e30d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Expand Up @@ -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);

Expand Down

0 comments on commit 33e30d6

Please sign in to comment.