From 65a5a90458fd38dfdb9a9629598d9ee97b8d631e Mon Sep 17 00:00:00 2001 From: Hemna Date: Mon, 14 Aug 2023 18:45:13 -0400 Subject: [PATCH] Disable the Send GPS Beacon button This patch disables the 'Send GPS Beacon' button for the webchat command if the browser isn't connected over https --- aprsd/web/chat/templates/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aprsd/web/chat/templates/index.html b/aprsd/web/chat/templates/index.html index c528ba3..0388475 100644 --- a/aprsd/web/chat/templates/index.html +++ b/aprsd/web/chat/templates/index.html @@ -26,6 +26,11 @@ start_update(); init_chat(); reset_Tabs(); + + if (location.protocol != 'https:') { + // Have to disable the beacon button. + $('#send_beacon').prop('disabled', true); + } });