2024-05-10 05:24:24 +02:00
|
|
|
// Copyright 2024, Command Line Inc.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
import * as React from "react";
|
|
|
|
import { createRoot } from "react-dom/client";
|
2024-05-14 06:42:25 +02:00
|
|
|
import { App } from "./app/app";
|
|
|
|
import { loadFonts } from "./util/fontutil";
|
2024-05-13 23:40:18 +02:00
|
|
|
|
|
|
|
loadFonts();
|
2024-05-10 05:24:24 +02:00
|
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
|
|
let reactElem = React.createElement(App, null, null);
|
|
|
|
let elem = document.getElementById("main");
|
|
|
|
let root = createRoot(elem);
|
|
|
|
document.fonts.ready.then(() => {
|
|
|
|
root.render(reactElem);
|
|
|
|
});
|
|
|
|
});
|