marvingrieger/ioBroker.haassohn

Fix use of module.parent

marvingrieger opened this issue · 0 comments

module.parent is deprecated

if (module && module.parent)
, better check module === require.main

Originally posted by @foxriver76 in ioBroker/ioBroker.repositories#1054 (comment)