aboutsummaryrefslogtreecommitdiff
path: root/modern/src/MainMap.js
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 /modern/src/MainMap.js
parentefe2c2cc2d59be87048ed12a29736a5d9eaf597f (diff)
downloadtrackermap-web-e8e42979e8dc4fbeb5ced188bfa8a27b07913487.tar.gz
trackermap-web-e8e42979e8dc4fbeb5ced188bfa8a27b07913487.tar.bz2
trackermap-web-e8e42979e8dc4fbeb5ced188bfa8a27b07913487.zip
Fix warning
Diffstat (limited to 'modern/src/MainMap.js')
-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 ff51b56e..00204b25 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(