theme: avoid script error in 404 template #178

This commit is contained in:
Sören Weber 2022-02-13 02:32:52 +01:00
parent ec053c7c5e
commit dc44692942
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -27,8 +27,10 @@
} }
function markTheme( theme ){ function markTheme( theme ){
var select = document.querySelector( '#select-theme' ); var select = document.querySelector( '#select-theme' );
if( select ){
select.value = theme; select.value = theme;
} }
}
function changeTheme( theme, noanimation ){ function changeTheme( theme, noanimation ){
if( !theme ){ if( !theme ){
return; return;