diff --git a/applications/survivalKit/app-survivalKit.js b/applications/survivalKit/app-survivalKit.js index 84fa734..da19f22 100644 --- a/applications/survivalKit/app-survivalKit.js +++ b/applications/survivalKit/app-survivalKit.js @@ -88,7 +88,7 @@ var n = d.getTime(); if (typeof message === "string") { - eventObj = JSON.parse(message); + var eventObj = JSON.parse(message); if (eventObj.channel === channel) { if (eventObj.action === "UPDATE_FLASHLIGHT_ACTIVATION" && (n - timestamp) > INTERCALL_DELAY) { d = new Date();