mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
note for future cleanup
This commit is contained in:
parent
9fd39ab57f
commit
cb32f4201e
@ -81,6 +81,7 @@ async function loadOlmWorker(paths) {
|
|||||||
// see https://github.com/rollup/plugins/tree/master/packages/multi-entry
|
// see https://github.com/rollup/plugins/tree/master/packages/multi-entry
|
||||||
export async function main(container, paths, legacyExtras) {
|
export async function main(container, paths, legacyExtras) {
|
||||||
try {
|
try {
|
||||||
|
// TODO: add .legacy to body in (legacy)platform.createAndMountRootView; and use body:not(.legacy) if needed for modern stuff
|
||||||
const isIE11 = !!window.MSInputMethodContext && !!document.documentMode;
|
const isIE11 = !!window.MSInputMethodContext && !!document.documentMode;
|
||||||
if (isIE11) {
|
if (isIE11) {
|
||||||
document.body.className += " ie11";
|
document.body.className += " ie11";
|
||||||
@ -134,6 +135,7 @@ export async function main(container, paths, legacyExtras) {
|
|||||||
});
|
});
|
||||||
window.__brawlViewModel = vm;
|
window.__brawlViewModel = vm;
|
||||||
await vm.load();
|
await vm.load();
|
||||||
|
// TODO: replace with platform.createAndMountRootView(vm, container);
|
||||||
const view = new BrawlView(vm);
|
const view = new BrawlView(vm);
|
||||||
container.appendChild(view.mount());
|
container.appendChild(view.mount());
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user