mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 02:24:18 +00:00
fix trailing slash
This commit is contained in:
parent
f31371a5ca
commit
6be4fdcd12
@ -177,7 +177,12 @@ class ElectronApp {
|
||||
if (url.startsWith(urlStarter)) {
|
||||
const urlValue = url.split(urlStarter)[1]
|
||||
|
||||
const explicitAction = urlValue.split("#")
|
||||
let explicitAction = urlValue.split("#")
|
||||
|
||||
// remove trailing slash for windows :(
|
||||
if (explicitAction[0].endsWith("/")) {
|
||||
explicitAction[0] = explicitAction[0].slice(0, -1)
|
||||
}
|
||||
|
||||
console.log(explicitAction)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user