diff options
author | 0neGal <mail@0negal.com> | 2022-05-17 00:46:40 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-05-17 00:46:40 +0200 |
commit | 17a0a0e752ef515e4ea1e735e52efdb81d63f7dd (patch) | |
tree | 16bc3e4d956cee901dd386f3ad0b0b3ff94316d3 /src/app/browser.js | |
parent | 31545f96ac56e0bbc7d0ed59f86015d693d464d9 (diff) | |
download | Viper-17a0a0e752ef515e4ea1e735e52efdb81d63f7dd.tar.gz Viper-17a0a0e752ef515e4ea1e735e52efdb81d63f7dd.zip |
improvements to the preview
It now looks a lot better overall. Still missing a few things, like
showing when it's loading, but besides that it's pretty much done.
Diffstat (limited to 'src/app/browser.js')
-rw-r--r-- | src/app/browser.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/app/browser.js b/src/app/browser.js index b3b1b59..5a5a752 100644 --- a/src/app/browser.js +++ b/src/app/browser.js @@ -437,10 +437,17 @@ events.forEach((event) => { }); view.addEventListener("dom-ready", () => { - view.insertCSS(fs.readFileSync(__dirname + "/css/webview.css", "utf8")); + let css = [ + fs.readFileSync(__dirname + "/css/theming.css", "utf8"), + fs.readFileSync(__dirname + "/css/webview.css", "utf8") + ] + + view.insertCSS(css.join(" ")); }) let checks = document.querySelectorAll(".check"); for (let i = 0; i < checks.length; i++) { checks[i].setAttribute("onclick", "this.classList.toggle('checked');Browser.loadfront();search.value = ''") } + +Preview.set("https://northstar.thunderstore.io/package/odds/DamageFlyout/") |