Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
heldersepu committed Mar 23, 2024
1 parent fbbe61b commit 93cff70
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/core/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,15 @@ export const parseSearch = () => {
continue
}
i = params[i].split("=")
map[decodeURIComponent(i[0])] = (i[1] && decodeURIComponent(i[1])) || ""
let value = i[1] ? decodeURIComponent(i[1]) : ""

if (value === "true") {
value = true
} else if (value === "false") {
value = false
}

map[decodeURIComponent(i[0])] = value
}
}

Expand Down

0 comments on commit 93cff70

Please sign in to comment.