Skip to content

Commit b2b3d4e

Browse files
committed
Remove ending / from token
1 parent d2185ce commit b2b3d4e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SignalCaptcha/js/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
}
3131
else if (args.detail.kind === activation.ActivationKind.protocol) {
3232
const originalUri = args.detail.uri.rawUri;
33-
const token = originalUri.substring(16);
33+
let token = originalUri.substring(16);
34+
if (token.endsWith("/")) {
35+
token = token.substring(0, token.length - 1);
36+
}
3437
const newUri = "signalpassback://?" + token;
3538
const launcherOptions = new Windows.System.LauncherOptions();
3639
launcherOptions.targetApplicationPackageFamilyName = "2383BenediktRadtke.SignalPrivateMessenger_teak1p7hcx9ga";

0 commit comments

Comments
 (0)