mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
variant: don't switch theme if custom gets reset #188
This commit is contained in:
parent
b49a8bdacd
commit
c2f2c991e3
1 changed files with 3 additions and 1 deletions
|
@ -130,7 +130,9 @@ var variants = {
|
|||
window.localStorage.removeItem( 'customvariantbase' );
|
||||
window.localStorage.removeItem( 'customvariant' );
|
||||
this.removeCustomVariantOption();
|
||||
this.changeVariant( variantbase );
|
||||
if( this.getVariant() == variantbase ){
|
||||
this.changeVariant( variantbase );
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue