Revamp Mobile/Desktop switcher without completely reloading.

Remove switcher from login page, it became useless.
This commit is contained in:
djmaze 2021-02-16 20:12:23 +01:00
parent 292f3289ac
commit d7994ddab6
35 changed files with 159 additions and 202 deletions

4
dev/bootstrap.js vendored
View file

@ -1,4 +1,4 @@
import { doc, dropdownVisibility } from 'Common/Globals';
import { doc, elementById, dropdownVisibility } from 'Common/Globals';
import { StorageResultType } from 'Common/Enums';
import { i18n } from 'Common/Translator';
@ -136,7 +136,7 @@ export default (App) => {
window.__APP_BOOT = fErrorCallback => {
const cb = () => setTimeout(() => {
if (rl.TEMPLATES) {
doc.getElementById('rl-templates').innerHTML = rl.TEMPLATES;
elementById('rl-templates').innerHTML = rl.TEMPLATES;
setTimeout(() => App.bootstart(), 10);
} else {
fErrorCallback();