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