Use https version for buurtnatuur
This commit is contained in:
parent
07b579c6fb
commit
6abafd3883
1 changed files with 11 additions and 1 deletions
12
index.ts
12
index.ts
|
@ -22,6 +22,17 @@ import {SearchAndGo} from "./UI/SearchAndGo";
|
|||
import {CollapseButton} from "./UI/Base/CollapseButton";
|
||||
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;
|
||||
|
||||
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 -----------------
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue