aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
Diffstat (limited to 'modern')
-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(