mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
theme: avoid script error in 404 template #178
This commit is contained in:
parent
ec053c7c5e
commit
dc44692942
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@
|
||||||
}
|
}
|
||||||
function markTheme( theme ){
|
function markTheme( theme ){
|
||||||
var select = document.querySelector( '#select-theme' );
|
var select = document.querySelector( '#select-theme' );
|
||||||
select.value = theme;
|
if( select ){
|
||||||
|
select.value = theme;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function changeTheme( theme, noanimation ){
|
function changeTheme( theme, noanimation ){
|
||||||
if( !theme ){
|
if( !theme ){
|
||||||
|
|
Loading…
Reference in a new issue