From 2d30a4f3444d2123c7b938b726f5480c793212ef Mon Sep 17 00:00:00 2001 From: jbowerjr Date: Fri, 13 Sep 2024 11:54:28 -0500 Subject: [PATCH] Modified the split formula to look for ? or & --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 2ec86c5..1f78ee9 100644 --- a/index.html +++ b/index.html @@ -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;