mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 18:37:05 +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( 'customvariantbase' );
|
||||||
window.localStorage.removeItem( 'customvariant' );
|
window.localStorage.removeItem( 'customvariant' );
|
||||||
this.removeCustomVariantOption();
|
this.removeCustomVariantOption();
|
||||||
if( this.getVariant() == variantbase ){
|
if( this.getVariant() == this.customvariantname ){
|
||||||
this.changeVariant( variantbase );
|
this.changeVariant( variantbase );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user