Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nicojeske committed Feb 27, 2024
2 parents 96b1c91 + 3ebe242 commit 4811a2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.ts
Expand Up @@ -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));
Expand Down

0 comments on commit 4811a2d

Please sign in to comment.