This commit is contained in:
Marc-Andre Ferland 2022-10-18 03:23:42 -04:00
commit 940236b4a4
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
@echo off
@REM @copy sd-ui-files\scripts\on_env_start.bat scripts\ /Y
@copy sd-ui-files\scripts\on_env_start.bat scripts\ /Y
@REM Caution, this file will make your eyes and brain bleed. It's such an unholy mess.
@REM Note to self: Please rewrite this in Python. For the sake of your own sanity.

View File

@ -1757,7 +1757,7 @@ function getThemeName(theme) {
// init themefield
function initTheme() {
Array.from(document.styleSheets)
.filter(sheet => sheet.href.startsWith(window.location.origin))
.filter(sheet => sheet.href?.startsWith(window.location.origin))
.flatMap(sheet => Array.from(sheet.cssRules))
.forEach(rule => {
var selector = rule.selectorText; // TODO: also do selector == ":root", re-run un-set props