Skip to content

Commit

Permalink
Modified the split formula to look for ? or &
Browse files Browse the repository at this point in the history
  • Loading branch information
jbowerjr committed Sep 13, 2024
1 parent 7bceaa0 commit 2d30a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
state: {},
airport: {}
};
const showAirport = window.location.search.toLowerCase().split('&').indexOf('layer=airport') > -1;
const showAirport = window.location.search.toLowerCase().split(/\?|&/).indexOf('layer=airport') > -1;
</script>
<script src="data/states/mb_all_he.js" ></script>
<script src="data/states/mb_all_le.js" ></script>
Expand Down

0 comments on commit 2d30a4f

Please sign in to comment.