Use https version for buurtnatuur

This commit is contained in:
Pieter Vander Vennet 2020-07-11 11:50:03 +02:00
parent 07b579c6fb
commit 6abafd3883

View file

@ -22,6 +22,17 @@ import {SearchAndGo} from "./UI/SearchAndGo";
import {CollapseButton} from "./UI/Base/CollapseButton"; import {CollapseButton} from "./UI/Base/CollapseButton";
import {AllKnownLayouts} from "./Customizations/AllKnownLayouts"; import {AllKnownLayouts} from "./Customizations/AllKnownLayouts";
// --------------------- Read the URL parameters -----------------
if(location.href.startsWith("http://buurtnatuur.be")){
// Reload the https version. This is important for the 'locate me' button
window.location.replace("https://buurtnatuur.be");
}
let dryRun = false; let dryRun = false;
if (location.hostname === "localhost" || location.hostname === "127.0.0.1") { if (location.hostname === "localhost" || location.hostname === "127.0.0.1") {
@ -34,7 +45,6 @@ if (location.hostname === "localhost" || location.hostname === "127.0.0.1") {
} }
// ----------------- SELECT THE RIGHT QUESTSET ----------------- // ----------------- SELECT THE RIGHT QUESTSET -----------------