commit | 16de322dd25405d34089197c1b1469783d268dc6 | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Fri Mar 08 17:55:11 2024 -0500 |
committer | swissChili <swisschili@fastmail.com> | Fri Mar 08 17:55:11 2024 -0500 |
tree | 8b03eac0d18d766408c1950a02a0f0e0556d7fff | |
parent | ab615d827f4bcabdbb14e294e3284cffd2c5bc71 [diff] [blame] |
Improve styles
diff --git a/webview-frontend.js b/webview-frontend.js index 9a53b21..895ba34 100644 --- a/webview-frontend.js +++ b/webview-frontend.js
@@ -1,4 +1,10 @@ const {UnitsApp} = require("./frontend-impl.js"); const React = require("preact"); +const stylesheet = require("./styles.css.txt"); + +const style = document.createElement("style"); +style.innerText = stylesheet; + +document.body.appendChild(style); React.render(<UnitsApp />, document.getElementById("app"));