aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-03-19 23:22:00 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-03-19 23:22:00 -0700
commite8e42979e8dc4fbeb5ced188bfa8a27b07913487 (patch)
tree189752e45038e39fdb36aa1621b103ac2eb7dc5d
parentefe2c2cc2d59be87048ed12a29736a5d9eaf597f (diff)
downloadetbsa-traccar-web-e8e42979e8dc4fbeb5ced188bfa8a27b07913487.tar.gz
etbsa-traccar-web-e8e42979e8dc4fbeb5ced188bfa8a27b07913487.tar.bz2
etbsa-traccar-web-e8e42979e8dc4fbeb5ced188bfa8a27b07913487.zip
Fix warning
-rw-r--r--modern/src/MainMap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/MainMap.js b/modern/src/MainMap.js
index ff51b56..00204b2 100644
--- a/modern/src/MainMap.js
+++ b/modern/src/MainMap.js
@@ -21,7 +21,7 @@ class MainMap extends Component {
zoom: 9
})
});
- if (location.hostname === 'localhost') {
+ if (window.location.hostname === 'localhost') {
olms(this.map, 'https://cdn.traccar.com/map/basic.json');
} else {
this.map.addLayer(