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

Function start

defaultmodules/alert/alert.js:44–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 },
43
44 async start () {
45 Log.info(`Starting module: ${this.name}`);
46
47 if (this.config.effect === "slide") {
48 this.config.effect = `${this.config.effect}-${this.config.position}`;
49 }
50
51 if (this.config.welcome_message) {
52 const message = this.config.welcome_message === true ? this.translate("welcome") : this.config.welcome_message;
53 await this.showNotification({ title: this.translate("sysTitle"), message });
54 }
55 },
56
57 notificationReceived (notification, payload, sender) {
58 if (notification === "SHOW_ALERT") {

Callers

nothing calls this directly

Calls 1

translateMethod · 0.80

Tested by

no test coverage detected