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 ){