mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 17:34:52 +08:00
variant: fix occasional fail when resetting generator #208
This commit is contained in:
parent
b895d0386b
commit
eab101eace
@ -130,7 +130,7 @@ var variants = {
|
||||
window.localStorage.removeItem( 'customvariantbase' );
|
||||
window.localStorage.removeItem( 'customvariant' );
|
||||
this.removeCustomVariantOption();
|
||||
if( this.getVariant() == variantbase ){
|
||||
if( this.getVariant() == this.customvariantname ){
|
||||
this.changeVariant( variantbase );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user