A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
One-line switch to enable / disable modules
-
This post is deleted! -
Here is my version. No need to list all modules.
const pre_disabled = { "UNLISTED": true, // default value for unlisted other modules. "alert":false, "clock": false, "MMM-Remote-Control":false, } var DISABLED = new Proxy(pre_disabled, { get (receiver, name) { return name in receiver ? receiver[name] : receiver["UNLISTED"] } })
-
@sean said in One-line switch to enable / disable modules:
Here is my version. No need to list all modules.
const pre_disabled = { "UNLISTED": true, // default value for unlisted other modules. "alert":false, "clock": false, "MMM-Remote-Control":false, } var DISABLED = new Proxy(pre_disabled, { get (receiver, name) { return name in receiver ? receiver[name] : receiver["UNLISTED"] } })
Lovely :thumbs_up_light_skin_tone:
-
This post is deleted!