WorldLanguagesArchive / isOnlinev2

The extension code for isOnline V2
https://chrome.google.com/webstore/detail/isonline/pabjccjpgemijhffgnaamebfbcnalghj/
MIT License
13 stars 8 forks source link

Setting date to future causes issues with timestamp stuff #32

Closed joker314 closed 7 years ago

joker314 commented 7 years ago

If you set your timestamp to a date in the future, then go back to the present, localStorage.iOlastOn causes issues since it stays in the future and blocks any requests until that date.

joker314 commented 7 years ago

(see #30)

WorldLanguages commented 7 years ago

That's because if currentTimestamp-iOlastOn < 10 no requests are sent. You can edit it to ... < 10 && ... >-1 and this will be fixed. There would still be a tiny issue during 10 seconds, but I wouldn't even consider it a bug because many factors have to give place at the same time

joker314 commented 7 years ago

I've commited a change, we need to check if the bug still exists