Skip to content

Commit

Permalink
Merge pull request #1360 from wiedehopf/main
Browse files Browse the repository at this point in the history
change undefined variables to fixed colors
  • Loading branch information
fredclausen authored Feb 1, 2025
2 parents 2e8f13b + be2707d commit 03a7b8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acarshub-typescript/src/js-other/aircraft_icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 03a7b8a

Please sign in to comment.