note for future cleanup

This commit is contained in:
Bruno Windels 2020-09-18 12:05:35 +02:00
parent 9fd39ab57f
commit cb32f4201e

View file

@ -81,6 +81,7 @@ async function loadOlmWorker(paths) {
// see https://github.com/rollup/plugins/tree/master/packages/multi-entry
export async function main(container, paths, legacyExtras) {
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;
if (isIE11) {
document.body.className += " ie11";
@ -134,6 +135,7 @@ export async function main(container, paths, legacyExtras) {
});
window.__brawlViewModel = vm;
await vm.load();
// TODO: replace with platform.createAndMountRootView(vm, container);
const view = new BrawlView(vm);
container.appendChild(view.mount());
} catch(err) {