mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 20:12:03 +08:00
variant: don't switch theme if custom gets reset #188
This commit is contained in:
parent
b49a8bdacd
commit
c2f2c991e3
@ -130,8 +130,10 @@ var variants = {
|
|||||||
window.localStorage.removeItem( 'customvariantbase' );
|
window.localStorage.removeItem( 'customvariantbase' );
|
||||||
window.localStorage.removeItem( 'customvariant' );
|
window.localStorage.removeItem( 'customvariant' );
|
||||||
this.removeCustomVariantOption();
|
this.removeCustomVariantOption();
|
||||||
|
if( this.getVariant() == variantbase ){
|
||||||
this.changeVariant( variantbase );
|
this.changeVariant( variantbase );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
switchStylesheet: function( variant, without_check ){
|
switchStylesheet: function( variant, without_check ){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user