Skip to content

Commit

Permalink
fix(node): misuse of global Notification object
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams committed Jun 19, 2021
1 parent a52f041 commit b3c4167
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/nodePolyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,8 @@ export const polyfillApi = (): void => {
};

const $MM: MidiMixerApi = {
showNotification: (message: string) => {
new Notification(
`MIDI Mixer - ${foundManifest.name || foundManifest.key}`,
{
body: message,
}
);
},
showNotification: (message: string) =>
void ipc.send("plugin-showNotification", message),
getManifest: () => ipc.invoke("plugin-getManifest"),
getSettings: () => ipc.invoke("plugin-getSettings"),
ready: () => ipc.send("plugin-ready"),
Expand Down

0 comments on commit b3c4167

Please sign in to comment.