Remove url-search-params for now
This commit is contained in:
parent
1acd4112f7
commit
aaad4210cb
2 changed files with 2 additions and 2 deletions
|
|
@ -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')) {
|
||||
|
|
|
|||
|
|
@ -801,7 +801,7 @@
|
|||
);
|
||||
</script>
|
||||
|
||||
<script src="dist/url-search-params.js"></script>
|
||||
<!-- <script src="dist/url-search-params.js"></script> -->
|
||||
<script src="config.js"></script>
|
||||
<script src="keys.js"></script>
|
||||
<script src="dist/layers.js"></script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue