From 5f0168bc679b5a0150f06c6ee81b8ad45325143e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Mon, 21 Feb 2022 23:20:00 +0100 Subject: [PATCH] variant: reset custom generator styles correctly #188 --- static/js/variant.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/variant.js b/static/js/variant.js index 24fbd3f1d2..0a088ea2dc 100644 --- a/static/js/variant.js +++ b/static/js/variant.js @@ -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 ); } },