pota spots now starts and runs automagically if spots is enabled

merge-requests/160/head
Matthew Chambers 2022-02-20 11:12:26 -06:00
rodzic aee8c8bb97
commit 7a6f6ecf6b
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -13762,6 +13762,7 @@ var g_startupTable = [
[registerHotKeys, "Registered Hotkeys"],
[gtChatSystemInit, "Chat System Initialized"],
[getPotaPlaces, "Loading POTA Database"],
[getPotaSpots, "Starting POTA Spots Pump"],
[downloadAcknowledgements, "Contributor Acknowledgements Loaded"],
[postInit, "Finalizing System"]
];

Wyświetl plik

@ -47,7 +47,7 @@ function ingestPotaSpots(buffer)
function getPotaSpots()
{
if (g_mapSettings.offlineMode == false)
if (g_mapSettings.offlineMode == false && g_spotsEnabled == 1)
{
getBuffer(
"https://api.pota.app/spot/activator",