Store diffmode in localstorage.