Use local storage in development mode.