mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
dispatchEvent(new CustomEvent(...)) to fireEvent(...)
This commit is contained in:
parent
2d46eaa783
commit
44ee236709
9 changed files with 25 additions and 21 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { SMAudio } from 'Common/Audio';
|
||||
import * as Links from 'Common/Links';
|
||||
import { addObservablesTo } from 'Common/Utils';
|
||||
import { fireEvent } from 'Common/Globals';
|
||||
|
||||
/**
|
||||
* Might not work due to the new ServiceWorkerRegistration.showNotification
|
||||
|
|
@ -12,7 +13,7 @@ const HTML5Notification = window.Notification,
|
|||
dispatchMessage = data => {
|
||||
focus();
|
||||
if (data.Folder && data.Uid) {
|
||||
dispatchEvent(new CustomEvent('mailbox.message.show', {detail:data}));
|
||||
fireEvent('mailbox.message.show', data);
|
||||
} else if (data.Url) {
|
||||
rl.route.setHash(data.Url);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue