From aaad4210cb1370226c6abd85b4dcd5a58fae0625 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Sun, 3 Nov 2019 14:14:51 +0100 Subject: [PATCH] Remove url-search-params for now --- config.template.js | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.template.js b/config.template.js index 3d5a7bd..e6cd9cd 100644 --- a/config.template.js +++ b/config.template.js @@ -1,7 +1,6 @@ (function() { var hostname = window.location.hostname; var origin = window.location.protocol + '//' + hostname + (window.location.port ? ':' + window.location.port : ''); - var params = new URLSearchParams(window.location.search.slice(1)); BR.conf = {}; @@ -10,6 +9,7 @@ // or as query parameter (index.html?transit=true#zoom=...) // (uses search/query (?) not hash (#) params, as config only executed once at load) // TODO not included in permalink (better replace permalink with hash plugin) + //var params = new URLSearchParams(window.location.search.slice(1)); //BR.conf.transit = params.has('transit') && (params.get('transit') === 'true'); if (hostname.endsWith('brouter.de')) { diff --git a/index.html b/index.html index 68e82c1..8772ae2 100644 --- a/index.html +++ b/index.html @@ -801,7 +801,7 @@ ); - +