Update various brand instances in code

This commit is contained in:
J. Ryan Stinnett
2020-07-13 17:32:17 +01:00
parent 0667ede7b7
commit ffab08bd60
9 changed files with 21 additions and 21 deletions

View File

@@ -1,8 +1,8 @@
import {getVectorConfig} from '../getconfig';
function onBackToRiotClick() {
function onBackToElementClick() {
// Cookie should expire in 4 hours
document.cookie = 'riot_mobile_redirect_to_guide=false;path=/;max-age=14400';
document.cookie = 'element_mobile_redirect_to_guide=false;path=/;max-age=14400';
window.location.href = '../';
}
@@ -10,7 +10,7 @@ function onBackToRiotClick() {
function renderConfigError(message) {
const contactMsg = "If this is unexpected, please contact your system administrator " +
"or technical support representative.";
message = `<h2>Error loading Riot</h2><p>${message}</p><p>${contactMsg}</p>`;
message = `<h2>Error loading Element</h2><p>${message}</p><p>${contactMsg}</p>`;
const toHide = document.getElementsByClassName("mx_HomePage_container");
const errorContainers = document.getElementsByClassName("mx_HomePage_errorContainer");
@@ -27,7 +27,7 @@ function renderConfigError(message) {
}
async function initPage() {
document.getElementById('back_to_riot_button').onclick = onBackToRiotClick;
document.getElementById('back_to_element_button').onclick = onBackToElementClick;
let config = await getVectorConfig('..');
@@ -92,7 +92,7 @@ async function initPage() {
if (isUrl && !isUrl.endsWith('/')) isUrl += '/';
if (hsUrl !== 'https://matrix.org/') {
document.getElementById('configure_riot_button').href =
document.getElementById('configure_element_button').href =
"https://app.element.io/config/config?hs_url=" + encodeURIComponent(hsUrl) +
"&is_url=" + encodeURIComponent(isUrl);
document.getElementById('step1_heading').innerHTML= '1: Install the app';