From dc4469294286bfb26950b8fce128b0f8360ae888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 13 Feb 2022 02:32:52 +0100 Subject: [PATCH] theme: avoid script error in 404 template #178 --- layouts/partials/stylesheet.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/stylesheet.html b/layouts/partials/stylesheet.html index aa9bc06e24..fd35d6d49e 100644 --- a/layouts/partials/stylesheet.html +++ b/layouts/partials/stylesheet.html @@ -27,7 +27,9 @@ } function markTheme( theme ){ var select = document.querySelector( '#select-theme' ); - select.value = theme; + if( select ){ + select.value = theme; + } } function changeTheme( theme, noanimation ){ if( !theme ){