Skip to content
Merged
Prev Previous commit
Next Next commit
refactor(types): notification -> main:notification
  • Loading branch information
antonreshetov committed Apr 9, 2022
commit 8971b16f04e85a9a9f38f9783c237942890e6c87
2 changes: 1 addition & 1 deletion src/main/services/ipc/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ipcMain, Notification } from 'electron'
export const subscribeToNotification = () => {
if (!Notification.isSupported()) return

ipcMain.handle<NotificationPayload>('notification', (event, payload) => {
ipcMain.handle<NotificationPayload>('main:notification', (event, payload) => {
return new Promise(resolve => {
const { body } = payload
const notification = new Notification({
Expand Down