Instructions for installing mobile apps
Replace the native js dialog with a page telling you how to download the apps and how to set your HS URL.
This commit is contained in:
parent
57999b460b
commit
9c8ef4240c
5 changed files with 487 additions and 32 deletions
386
src/vector/mobile_guide/index.html
Normal file
386
src/vector/mobile_guide/index.html
Normal file
File diff suppressed because one or more lines are too long
19
src/vector/mobile_guide/index.js
Normal file
19
src/vector/mobile_guide/index.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
import {getVectorConfig} from '../getconfig';
|
||||
|
||||
function onBackToRiotClick() {
|
||||
document.cookie = 'mobile_redirect_to_guide=false;path=/';
|
||||
window.location.href = '../';
|
||||
}
|
||||
|
||||
async function initPage() {
|
||||
document.getElementById('back_to_riot_button').onclick = onBackToRiotClick;
|
||||
|
||||
const config = await getVectorConfig('..');
|
||||
let hsUrl = 'https://matrix.org/';
|
||||
if (config && config['default_hs_url']) {
|
||||
hsUrl = config['default_hs_url'];
|
||||
}
|
||||
document.getElementById('hs_url').innerHTML = hsUrl;
|
||||
}
|
||||
|
||||
initPage();
|
Loading…
Add table
Add a link
Reference in a new issue