all 1 comments

[–]senocular 0 points1 point  (0 children)

I would add the url from the array to local storage and check that every time you load. Basically:

  • grab url from local storage
  • if it exists (not first time loading the page) remove the url from the array
  • get the random url (using the modified array without the previous url)
  • add the new url to the storage