diff --git a/index.js b/index.js index 5cfcf393..c7e9641e 100644 --- a/index.js +++ b/index.js @@ -218,6 +218,27 @@ app.on('activate', function () { } }) +var lastIps = getIPs() +setInterval(function() { + // I did some research, this is the best way to do this + var ips = getIPs() + var newIp = false + if (lastIps.length !== ips.length) { + newIp = true + } + if (newIp === false) { + for (var i=0; i