From 72da1a90dbabbfd0b2101b0522aec0cfb66ca541 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 23 Apr 2025 11:34:44 +0100 Subject: [PATCH] Fix `io.element.desktop` protocol handler (#2280) --- src/protocol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol.ts b/src/protocol.ts index 6cb31ae..837f85d 100644 --- a/src/protocol.ts +++ b/src/protocol.ts @@ -117,7 +117,7 @@ export function protocolInit(): void { // Protocol handler for win32/Linux app.on("second-instance", (ev, commandLine) => { const url = commandLine[commandLine.length - 1]; - if (!url.startsWith(`${PROTOCOL}://`) && !url.startsWith(`${LEGACY_PROTOCOL}://`)) return; + if (!url.startsWith(`${PROTOCOL}:/`) && !url.startsWith(`${LEGACY_PROTOCOL}://`)) return; processUrl(url); }); }