mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 16:54:49 +08:00
variant: don't switch theme if custom gets reset #188
This commit is contained in:
parent
b49a8bdacd
commit
c2f2c991e3
@ -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…
x
Reference in New Issue
Block a user