Skip to content

Commit 9390121

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/BasePlatform.ts

+2
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,8 @@ 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+
// Set no_universal_links=true to prevent the callback being handled by Element X installed on macOS Apple Silicon
481+
url.searchParams.set("no_universal_links", "true");
480482
return url;
481483
}
482484

src/vector/platform/ElectronPlatform.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,6 @@ 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");
483481
// Trim the double slash into a single slash to comply with https://datatracker.ietf.org/doc/html/rfc8252#section-7.1
484482
if (url.href.startsWith(`${url.protocol}//`)) {
485483
url.href = url.href.replace("://", ":/");

0 commit comments

Comments
 (0)