Remove url-search-params for now

This commit is contained in:
Gautier Pelloux-Prayer 2019-11-03 14:14:51 +01:00
parent 1acd4112f7
commit aaad4210cb
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,6 @@
(function() { (function() {
var hostname = window.location.hostname; var hostname = window.location.hostname;
var origin = window.location.protocol + '//' + hostname + (window.location.port ? ':' + window.location.port : ''); var origin = window.location.protocol + '//' + hostname + (window.location.port ? ':' + window.location.port : '');
var params = new URLSearchParams(window.location.search.slice(1));
BR.conf = {}; BR.conf = {};
@ -10,6 +9,7 @@
// or as query parameter (index.html?transit=true#zoom=...) // or as query parameter (index.html?transit=true#zoom=...)
// (uses search/query (?) not hash (#) params, as config only executed once at load) // (uses search/query (?) not hash (#) params, as config only executed once at load)
// TODO not included in permalink (better replace permalink with hash plugin) // 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'); //BR.conf.transit = params.has('transit') && (params.get('transit') === 'true');
if (hostname.endsWith('brouter.de')) { if (hostname.endsWith('brouter.de')) {

View file

@ -801,7 +801,7 @@
); );
</script> </script>
<script src="dist/url-search-params.js"></script> <!-- <script src="dist/url-search-params.js"></script> -->
<script src="config.js"></script> <script src="config.js"></script>
<script src="keys.js"></script> <script src="keys.js"></script>
<script src="dist/layers.js"></script> <script src="dist/layers.js"></script>