| 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") { |