From 223170c5f1da0497841767fd12fd6192441edff4 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 12 Jul 2018 21:22:28 -0400 Subject: [PATCH] Rearrange top of file for easier config --- client.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/client.js b/client.js index 87499d9..6c8b2c9 100644 --- a/client.js +++ b/client.js @@ -1,8 +1,4 @@ -let stations = {}; - -let messages = []; - -const timeoutLength = 20 * 60 * 1000; // 20 Minutes +// null here means just use the original callsign const trackedStations = { // Digis/iGates "W1FN-1": null, @@ -27,8 +23,15 @@ const trackedStations = { "KC1GDW-14": "Something (panel van thing)" }; +const timeoutLength = 20 * 60 * 1000; // 20 Minutes const lowVoltage = 11.9; + +///////// End of Config ///////// + +let stations = {}; +let messages = []; + if (Notification.permission !== "granted") { Notification.requestPermission(permission => { if (permission === "granted") {