diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-19 23:22:00 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-19 23:22:00 -0700 |
commit | e8e42979e8dc4fbeb5ced188bfa8a27b07913487 (patch) | |
tree | 189752e45038e39fdb36aa1621b103ac2eb7dc5d /modern/src | |
parent | efe2c2cc2d59be87048ed12a29736a5d9eaf597f (diff) | |
download | trackermap-web-e8e42979e8dc4fbeb5ced188bfa8a27b07913487.tar.gz trackermap-web-e8e42979e8dc4fbeb5ced188bfa8a27b07913487.tar.bz2 trackermap-web-e8e42979e8dc4fbeb5ced188bfa8a27b07913487.zip |
Fix warning
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/MainMap.js | 2 |
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( |