mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
variant: reset custom generator styles correctly #188
This commit is contained in:
parent
78abe914e0
commit
5f0168bc67
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue