delete custom code localStorage on save if the custom code in empty