variant: don't switch theme if custom gets reset #188

This commit is contained in:
Sören Weber 2022-02-22 08:48:21 +01:00
parent b49a8bdacd
commit c2f2c991e3
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -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 );
}
}
},