library icon indicating copy to clipboard operation
library copied to clipboard

History localStorage does not function correctly

Open afischer opened this issue 5 years ago • 0 comments

Expected Behavior

History should be stored locally in localStorage using a user-specific key, and this history should be used within an hour of it being stored.

Actual Behavior

Due to an assignment where a conditional should be as well as some other issues, the item in localStorage will never be used.

Possible Solution

A few small tweaks to the client-side logic would fix this — see #51 for another example of localStorage being used with a time-based expiry.

afischer avatar Aug 21 '19 00:08 afischer