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

Function closeAndFocus

ui/src/snack/browserNotification.ts:29–37  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

27}
28
29function closeAndFocus(event: Event) {
30 if (window.parent) {
31 window.parent.focus();
32 }
33 window.focus();
34 window.location.href = '/';
35 const target = event.target as Notification;
36 target.close();
37}
38
39function closeAfterTimeout(event: Event) {
40 setTimeout(() => {

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…