|
@@ -66,9 +66,9 @@ export const createNotification = data => {
|
|
|
const timemap = dayjs().valueOf()
|
|
|
const callback_key = `${timemap}_${createRandom()}`
|
|
|
clickEvents[callback_key] = onClick
|
|
|
- clickEvents[callback_key] = onShow
|
|
|
- clickEvents[callback_key] = onError
|
|
|
- clickEvents[callback_key] = onClose
|
|
|
+ showEvents[callback_key] = onShow
|
|
|
+ errorEvents[callback_key] = onError
|
|
|
+ closeEvents[callback_key] = onClose
|
|
|
notificationWorker.postMessage({
|
|
|
...rest,
|
|
|
timemap,
|