ianperrin / MMM-NetworkScanner

A module for MagicMirror which determines the status of devices on the network based on their MAC or IP address

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

this.config is undefined

lmdc45 opened this issue · comments

not sure why but got error saying this.config is undefined in node_helper.js line 42

working with adding this.config again from the main config. Very new to MMM so no idea where the issue comes from, might be me...

start: function function_name () {
        if(!this.config){
            this.config = config.modules.find(m=>m.module=='MMM-NetworkScanner').config;
        }
        this.log("Starting module: " + this.name);
    }