MCPcopy Create free account
hub / github.com/gotify/server / notifyNewMessage

Function notifyNewMessage

ui/src/snack/browserNotification.ts:18–27  ·  view source on GitHub ↗
(msg: IMessage)

Source from the content-addressed store, hash-verified

16}
17
18export 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
29function closeAndFocus(event: Event) {
30 if (window.parent) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…