I have the following variable localStorage.timesDisplayed
in the browser's local storage.
I am wondering if there is a way to clear that variable with Javascript when browser is restarted.
I can use : delete localStorage.timesDisplayed
to delete the variable, but I am not sure how to detect that the browser has been restarted on the page load.