From 6be4fdcd1204e4308bbea8e4085d8a7afa63b8d5 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Mon, 25 Mar 2024 16:24:38 +0100 Subject: [PATCH] fix trailing slash --- src/main/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/index.js b/src/main/index.js index 048c717..f48edf3 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -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)