diff options
author | Anton Tananaev <anton@traccar.org> | 2023-05-15 13:36:47 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-05-15 13:36:47 -0700 |
commit | 4aa5da9a669c58dbe43600e576bcfc0346c121a0 (patch) | |
tree | af7ac9d66354dfc26ca4e115c03c3ca0c1fbd8c6 /modern/src/map | |
parent | 474104189d270df752d8a177685c2ab413683b3a (diff) | |
download | trackermap-web-4aa5da9a669c58dbe43600e576bcfc0346c121a0.tar.gz trackermap-web-4aa5da9a669c58dbe43600e576bcfc0346c121a0.tar.bz2 trackermap-web-4aa5da9a669c58dbe43600e576bcfc0346c121a0.zip |
Make theme dynamic
Diffstat (limited to 'modern/src/map')
-rw-r--r-- | modern/src/map/core/preloadImages.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/core/preloadImages.js b/modern/src/map/core/preloadImages.js index 770c1c57..0634251b 100644 --- a/modern/src/map/core/preloadImages.js +++ b/modern/src/map/core/preloadImages.js @@ -61,7 +61,7 @@ export default async () => { const results = []; ['primary', 'positive', 'negative', 'neutral'].forEach((color) => { results.push(loadImage(mapIcons[category]).then((icon) => { - mapImages[`${category}-${color}`] = prepareIcon(background, icon, palette.colors[color]); + mapImages[`${category}-${color}`] = prepareIcon(background, icon, palette().colors[color]); })); }); await Promise.all(results); |