aboutsummaryrefslogtreecommitdiff
path: root/modern/src/MainMap.js
diff options
context:
space:
mode:
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 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(