|
@@ -56,7 +56,12 @@ function parseURL(url)
|
|
|
if(qstrEntry.includes("="))
|
|
|
{
|
|
|
let splitEntry = qstrEntry.split("=");
|
|
|
- qstrObj[decodeURIComponent(splitEntry[0])] = decodeURIComponent(splitEntry[1].toLowerCase());
|
|
|
+ let val = decodeURIComponent(splitEntry[1].toLowerCase());
|
|
|
+
|
|
|
+ if(["true", "false"].includes(val.toLowerCase()))
|
|
|
+ val = Boolean(val.toLowerCase());
|
|
|
+
|
|
|
+ qstrObj[decodeURIComponent(splitEntry[0])] = val;
|
|
|
}
|
|
|
else
|
|
|
{
|