Skip to content

Commit

Permalink
🎨 Moved ipc handlers and listeners into a function
Browse files Browse the repository at this point in the history
  • Loading branch information
ZickZenni committed Sep 4, 2024
1 parent 017373a commit abe0039
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ export default class WaveCordApp {
return { action: 'deny' };
});

this.registerIpcs();
}

private registerIpcs() {
registerListener('window:minimize', () => {
this.window?.minimize();
});
Expand Down

0 comments on commit abe0039

Please sign in to comment.