Change persistent storage from file to localstorage