From cb32f4201ebd1e28955c17c2df4cc7b4f8d058a3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 18 Sep 2020 12:05:35 +0200 Subject: [PATCH] note for future cleanup --- src/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.js b/src/main.js index e6e69bdd..5ad97cda 100644 --- a/src/main.js +++ b/src/main.js @@ -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) {