Fix default dark mode CSS path in UtilityJS, use configurable default themes in bookmarklets.

This commit is contained in:
wn_
2025-08-10 12:27:38 +00:00
parent 4758c5f0bf
commit b803f85ec2
2 changed files with 7 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ window.addEventListener("load", function() {
console.log("night mode changed to", is_night);
const light_theme = typeof __default_light_theme != 'undefined' ? __default_light_theme : 'themes/light.css';
const dark_theme = typeof __default_dark_theme != 'undefined' ? __default_dark_theme : 'themes/dark.css';
const dark_theme = typeof __default_dark_theme != 'undefined' ? __default_dark_theme : 'themes/night.css';
if (link) {
const css_override = is_night ? dark_theme : light_theme;