variant: reset custom generator styles correctly #188

This commit is contained in:
Sören Weber 2022-02-21 23:20:00 +01:00
parent 78abe914e0
commit 5f0168bc67
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -127,10 +127,10 @@ var variants = {
resetVariant: function(){
var variantbase = window.localStorage.getItem( 'customvariantbase' );
if( variantbase && confirm( 'You have made changes to your custom variant. Are you sure you want to reset all changes?' ) ){
this.removeCustomVariantOption();
this.changeVariant( variantbase );
window.localStorage.removeItem( 'customvariantbase' );
window.localStorage.removeItem( 'customvariant' );
this.removeCustomVariantOption();
this.changeVariant( variantbase );
}
},