Open bday-boy opened 2 years ago
Update: this is kind of fixed. I think it technically works for now, but setting guesses into and getting guesses from storage is done through the check-answer.js module, which is disgusting spaghetti code right now. Eventually I want to clean that code up. But for now, guesses seem to work well through local storage.
It looks like quitting Safari (on iPhone, at least) clears the browser's cookies, but NOT the local storage data, so the user's daily and their daily guesses are deleted. Guesses should be stored in local storage instead so it remains persistent. This is probably preferable anyway because the daily cookie is set to delete after 24 hours whereas storing guesses in local storage will remain forever. This means the user could potentially check their guesses from any day in the past (if I decide to implement something that allows for this down the line).