@@ -51,7 +51,7 @@ interface SquirrelUpdate {
51
51
updateURL : string ;
52
52
}
53
53
54
- const SSO_ID_KEY = "element -desktop-ssoid" ;
54
+ const SSO_ID_KEY = "elecord -desktop-ssoid" ;
55
55
56
56
const isMac = navigator . platform . toUpperCase ( ) . includes ( "MAC" ) ;
57
57
@@ -141,7 +141,7 @@ export default class ElectronPlatform extends BasePlatform {
141
141
142
142
// try to flush the rageshake logs to indexeddb before quit.
143
143
window . electron . on ( "before-quit" , function ( ) {
144
- logger . log ( "element -desktop closing" ) ;
144
+ logger . log ( "elecord -desktop closing" ) ;
145
145
rageshake . flush ( ) ;
146
146
} ) ;
147
147
@@ -390,7 +390,7 @@ export default class ElectronPlatform extends BasePlatform {
390
390
391
391
public getSSOCallbackUrl ( fragmentAfterLogin ?: string ) : URL {
392
392
const url = super . getSSOCallbackUrl ( fragmentAfterLogin ) ;
393
- url . protocol = "element " ;
393
+ url . protocol = "elecord " ;
394
394
url . searchParams . set ( SSO_ID_KEY , this . ssoID ) ;
395
395
return url ;
396
396
}
@@ -452,12 +452,12 @@ export default class ElectronPlatform extends BasePlatform {
452
452
453
453
public get baseUrl ( ) : string {
454
454
// This configuration is element-desktop specific so the types here do not know about it
455
- return ( SdkConfig . get ( ) as unknown as Record < string , string > ) [ "web_base_url" ] ?? "https://app.element.io " ;
455
+ return ( SdkConfig . get ( ) as unknown as Record < string , string > ) [ "web_base_url" ] ?? "https://web.elecord.app " ;
456
456
}
457
457
458
458
public get defaultOidcClientUri ( ) : string {
459
459
// Default to element.io as our scheme `io.element.desktop` is within its scope on default MAS policies
460
- return "https://element.io " ;
460
+ return "https://elecord.app " ;
461
461
}
462
462
463
463
public async getOidcClientMetadata ( ) : Promise < OidcRegistrationClientMetadata > {
@@ -477,7 +477,7 @@ export default class ElectronPlatform extends BasePlatform {
477
477
*/
478
478
public getOidcCallbackUrl ( ) : URL {
479
479
const url = super . getOidcCallbackUrl ( ) ;
480
- url . protocol = "io.element .desktop" ;
480
+ url . protocol = "app.elecord .desktop" ;
481
481
// Trim the double slash into a single slash to comply with https://datatracker.ietf.org/doc/html/rfc8252#section-7.1
482
482
if ( url . href . startsWith ( `${ url . protocol } //` ) ) {
483
483
url . href = url . href . replace ( "://" , ":/" ) ;
0 commit comments