mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +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,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;
|
||||||
|
|
Loading…
Reference in a new issue