From 6d4bc1074745dcb349519512f4510370743d27bc Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 10 Dec 2025 12:22:30 +0100 Subject: [PATCH] Default fallback colors for gridmap --- assets/js/sections/gridmap.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/js/sections/gridmap.js b/assets/js/sections/gridmap.js index 45c8b5ff9..9a5fca388 100644 --- a/assets/js/sections/gridmap.js +++ b/assets/js/sections/gridmap.js @@ -1,7 +1,13 @@ var modalloading=false; -let confirmedColor = user_map_custom.qsoconfirm.color; -let workedColor = user_map_custom.qso.color; +let confirmedColor = 'rgba(144,238,144)'; +if (typeof user_map_custom.qsoconfirm !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(255, 0, 0)'; +if (typeof user_map_custom.qso !== 'undefined') { + workedColor = user_map_custom.qso.color; +} document.addEventListener("DOMContentLoaded", function() { document.querySelectorAll('.dropdown').forEach(dd => {