11import { getVectorConfig } from '../getconfig' ;
22
3- function onBackToRiotClick ( ) {
3+ function onBackToElementClick ( ) {
44 // Cookie should expire in 4 hours
5- document . cookie = 'riot_mobile_redirect_to_guide =false;path=/;max-age=14400' ;
5+ document . cookie = 'element_mobile_redirect_to_guide =false;path=/;max-age=14400' ;
66 window . location . href = '../' ;
77}
88
99// NEVER pass user-controlled content to this function! Hardcoded strings only please.
1010function renderConfigError ( message ) {
1111 const contactMsg = "If this is unexpected, please contact your system administrator " +
1212 "or technical support representative." ;
13- message = `<h2>Error loading Riot </h2><p>${ message } </p><p>${ contactMsg } </p>` ;
13+ message = `<h2>Error loading Element </h2><p>${ message } </p><p>${ contactMsg } </p>` ;
1414
1515 const toHide = document . getElementsByClassName ( "mx_HomePage_container" ) ;
1616 const errorContainers = document . getElementsByClassName ( "mx_HomePage_errorContainer" ) ;
@@ -27,7 +27,7 @@ function renderConfigError(message) {
2727}
2828
2929async function initPage ( ) {
30- document . getElementById ( 'back_to_riot_button ' ) . onclick = onBackToRiotClick ;
30+ document . getElementById ( 'back_to_element_button ' ) . onclick = onBackToElementClick ;
3131
3232 let config = await getVectorConfig ( '..' ) ;
3333
@@ -92,7 +92,7 @@ async function initPage() {
9292 if ( isUrl && ! isUrl . endsWith ( '/' ) ) isUrl += '/' ;
9393
9494 if ( hsUrl !== 'https://matrix.org/' ) {
95- document . getElementById ( 'configure_riot_button ' ) . href =
95+ document . getElementById ( 'configure_element_button ' ) . href =
9696 "https://app.element.io/config/config?hs_url=" + encodeURIComponent ( hsUrl ) +
9797 "&is_url=" + encodeURIComponent ( isUrl ) ;
9898 document . getElementById ( 'step1_heading' ) . innerHTML = '1: Install the app' ;
0 commit comments