app screen routing - routes are no case insensitive

This commit is contained in:
Michael Shanks 2020-10-14 20:54:07 +01:00
parent 755349cc81
commit 9ee36ef2c0
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ export const screenRouter = ({ screens, onScreenSelected, window }) => {
function route(url) {
const _url = makeRootedPath(url.state || url)
current = routes.findIndex(
p => p !== "*" && new RegExp("^" + p + "$").test(_url)
p =>
p !== "*" &&
new RegExp("^" + p.toLowerCase() + "$").test(_url.toLowerCase())
)
const params = {}