From 4fefceeb1051f40426c1329679a984e799d07a3e Mon Sep 17 00:00:00 2001 From: gtech99 Date: Thu, 22 Aug 2024 23:27:31 -0400 Subject: [PATCH] Update index.js --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index e753d0c..0eb17b3 100644 --- a/index.js +++ b/index.js @@ -68,7 +68,9 @@ exports.load_config = function () { // active zones if (this.cfg.main.periodic_checks < 5) { // all configured are enabled - this.zones = new Set(...this.cfg.main.zones) + // The original code is making a Set from the already existing Set created above. It leads to gibberish + //this.zones = new Set(...this.cfg.main.zones) + this.zones = this.cfg.main.zones } else { this.zones = new Set() // populated by check_zones() }