From be2707d7f9e0d7b286683f94923eab0da9e0620d Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sat, 1 Feb 2025 15:06:58 +0000 Subject: [PATCH] change undefined variables to fixed colors this fixes errors when certain icons on the ADS-B map are used --- acarshub-typescript/src/js-other/aircraft_icons.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acarshub-typescript/src/js-other/aircraft_icons.js b/acarshub-typescript/src/js-other/aircraft_icons.js index 766cdf36e..186886be4 100644 --- a/acarshub-typescript/src/js-other/aircraft_icons.js +++ b/acarshub-typescript/src/js-other/aircraft_icons.js @@ -1255,8 +1255,8 @@ export function svgShapeToURI(shape, strokeWidth, scale) { if (!shape.path) { let svg = shape.svg - .replace("fillColor", fillColor) - .replace("strokeColor", strokeColor) + .replace("fillColor", "#ffffff") + .replace("strokeColor", "#000000") .replace("strokeWidth", strokeWidth); svg = svg.replace("SIZE", 'width="' + wi + 'px" height="' + he + 'px"'); return "data:image/svg+xml;base64," + btoa(svg);