Do not override theme if already set
This commit is contained in:
parent
0be8fc9b97
commit
6c8215bc0c
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@fwdekker/template",
|
||||
"version": "3.3.9",
|
||||
"version": "3.3.10",
|
||||
"description": "The base template for pages on fwdekker.com.",
|
||||
"author": "Florine W. Dekker",
|
||||
"license": "MIT",
|
||||
|
|
|
@ -243,7 +243,8 @@ function footerLink(prefix: string, text: string | null | undefined, url: string
|
|||
* not a valid value as a parameter for that function, its value is considered `undefined`.
|
||||
*/
|
||||
doAfterLoad(() => {
|
||||
$("html")!.dataset["theme"] = "light";
|
||||
const html = $("html")!;
|
||||
if (html.dataset["theme"] == null) html.dataset["theme"] = "light";
|
||||
|
||||
const navTarget = $(getMetaProperty("fwd:nav:target"));
|
||||
if (navTarget != null) {
|
||||
|
|
Loading…
Reference in New Issue