MCPcopy Index your code
hub / github.com/MagicMirrorOrg/MagicMirror / showNotification

Function showNotification

defaultmodules/alert/alert.js:69–78  ·  view source on GitHub ↗
(notification)

Source from the content-addressed store, hash-verified

67 },
68
69 async showNotification (notification) {
70 const message = await this.renderMessage(notification.templateName || "notification", notification);
71
72 new NotificationFx({
73 message,
74 layout: "growl",
75 effect: this.config.effect,
76 ttl: notification.timer || this.config.display_time
77 }).show();
78 },
79
80 async showAlert (alert, sender) {
81 // If module already has an open alert close it

Callers

nothing calls this directly

Calls 1

showMethod · 0.80

Tested by

no test coverage detected