Save console history in local storage.