mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove finished TODO
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
16d7baae21
commit
4fe38cc09a
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user