mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 17:41:02 +08:00
variant: reset custom generator styles correctly #188
This commit is contained in:
parent
78abe914e0
commit
5f0168bc67
@ -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…
x
Reference in New Issue
Block a user