aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/Map.js
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-08 22:51:16 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-08 22:51:16 -0600
commit982dec21075a244a0c75ee11c13777d6931e21ec (patch)
treee211e1e252b8d5757693e43bf98758b9a139847d /modern/src/map/Map.js
parent3dcc6be877f8f43bd9c7e1eee1ad6d7950b435a5 (diff)
downloadetbsa-traccar-web-982dec21075a244a0c75ee11c13777d6931e21ec.tar.gz
etbsa-traccar-web-982dec21075a244a0c75ee11c13777d6931e21ec.tar.bz2
etbsa-traccar-web-982dec21075a244a0c75ee11c13777d6931e21ec.zip
Adjusted media queries, and device color = gray when ignition is undefined
Diffstat (limited to 'modern/src/map/Map.js')
-rw-r--r--modern/src/map/Map.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/Map.js b/modern/src/map/Map.js
index 63e3a73..d02fae1 100644
--- a/modern/src/map/Map.js
+++ b/modern/src/map/Map.js
@@ -44,7 +44,7 @@ const initMap = async () => {
if (ready) return;
if (!map.hasImage('background')) {
const background = await loadImage('images/background.svg');
- map.addImage('background', await prepareIcon(background), {
+ map.addImage('background', prepareIcon(background), {
pixelRatio: window.devicePixelRatio,
});
await Promise.all(deviceCategories.map(async (category) => {