Skip to content

Commit 59cb6fc

Browse files
committed
Iterate
Signed-off-by: Michael Telatynski <[email protected]>
1 parent 3b397d4 commit 59cb6fc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/BasePlatform.ts

-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,6 @@ export default abstract class BasePlatform {
477477
// The redirect URL has to exactly match that registered at the OIDC server, so
478478
// ensure that the fragment part of the URL is empty.
479479
url.hash = "";
480-
url.searchParams.set("no_universal_links", "true");
481480
return url;
482481
}
483482

src/vector/platform/ElectronPlatform.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ export default class ElectronPlatform extends BasePlatform {
478478
public getOidcCallbackUrl(): URL {
479479
const url = super.getOidcCallbackUrl();
480480
url.protocol = "io.element.desktop";
481+
// Set no_universal_links=true to prevent the callback being handled by Element X installed on macOS Apple Silicon
482+
url.searchParams.set("no_universal_links", "true");
481483
// Trim the double slash into a single slash to comply with https://datatracker.ietf.org/doc/html/rfc8252#section-7.1
482484
if (url.href.startsWith(`${url.protocol}//`)) {
483485
url.href = url.href.replace("://", ":/");

0 commit comments

Comments
 (0)