Skip to content

Commit 72da1a9

Browse files
authored
Fix io.element.desktop protocol handler (#2280)
1 parent a43d087 commit 72da1a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function protocolInit(): void {
117117
// Protocol handler for win32/Linux
118118
app.on("second-instance", (ev, commandLine) => {
119119
const url = commandLine[commandLine.length - 1];
120-
if (!url.startsWith(`${PROTOCOL}://`) && !url.startsWith(`${LEGACY_PROTOCOL}://`)) return;
120+
if (!url.startsWith(`${PROTOCOL}:/`) && !url.startsWith(`${LEGACY_PROTOCOL}://`)) return;
121121
processUrl(url);
122122
});
123123
}

0 commit comments

Comments
 (0)