Remove finished TODO

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-03-01 13:34:47 -05:00
1 parent 16d7baae21
commit 4fe38cc09a
1 file changed
+5 -1
@@ -3,13 +3,17 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable } from "@ogre-tools/injectable";
import isMacInjectable from "../../common/vars/is-mac.injectable";
const rootElementInjectable = getInjectable({
id: "root-element",
instantiate: () => {
instantiate: (di) => {
const isMac = di.inject(isMacInjectable);
const rootElement = document.createElement("div");
rootElement.id = "app";
rootElement.classList.toggle("is-mac", isMac);
document.getElementsByTagName("body")[0].append(rootElement);