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,8 +27,10 @@
|
|||
}
|
||||
function markTheme( theme ){
|
||||
var select = document.querySelector( '#select-theme' );
|
||||
if( select ){
|
||||
select.value = theme;
|
||||
}
|
||||
}
|
||||
function changeTheme( theme, noanimation ){
|
||||
if( !theme ){
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue