(msg: IMessage)
| 16 | } |
| 17 | |
| 18 | export function notifyNewMessage(msg: IMessage) { |
| 19 | const notify = new Notify(msg.title, { |
| 20 | body: removeMarkdown(msg.message), |
| 21 | icon: msg.image, |
| 22 | silent: true, |
| 23 | notifyClick: closeAndFocus, |
| 24 | notifyShow: closeAfterTimeout, |
| 25 | }); |
| 26 | notify.show(); |
| 27 | } |
| 28 | |
| 29 | function closeAndFocus(event: Event) { |
| 30 | if (window.parent) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…