Save the patch to the local storage

I have created the patch and store this patch to the local storage and
then clear the variable value