swissChili | ab615d8 | 2024-03-08 17:15:13 -0500 | [diff] [blame] | 1 | const {UnitsApp} = require("./frontend-impl.js"); |
2 | const React = require("preact"); | ||||
swissChili | 16de322 | 2024-03-08 17:55:11 -0500 | [diff] [blame] | 3 | const stylesheet = require("./styles.css.txt"); |
4 | |||||
5 | const style = document.createElement("style"); | ||||
6 | style.innerText = stylesheet; | ||||
7 | |||||
8 | document.body.appendChild(style); | ||||
swissChili | ab615d8 | 2024-03-08 17:15:13 -0500 | [diff] [blame] | 9 | |
10 | React.render(<UnitsApp />, document.getElementById("app")); |