Prefix window global with window.

This commit is contained in:
Kimmo Puputti 2017-10-12 09:21:40 +03:00
parent 78de6d9d69
commit 1362d2bd16

View file

@ -63,7 +63,7 @@ export class SearchPageComponent extends Component {
this.fetchMoreListingsToMap(nextProps.location);
// If no boundsChanged url parameter is given, this is original location search
const { boundsChanged } = parse(location.search, {
const { boundsChanged } = parse(window.location.search, {
latlng: ['origin'],
latlngBounds: ['bounds'],
});