PixelsCommander / OnlineJS

Reliable, fast and easy to use library to check your internet connection status
http://pixelscommander.com/polygon/onlinejs/
68 stars 17 forks source link

Remove Date.now() cache buster for url ping #11

Closed griffithben closed 10 years ago

griffithben commented 10 years ago

Date.now() doesn't seem to be supported in older versions of IE. Including Math.floor(Math.random() * 1000000); instead to force a unique url.

Will not guarantee a unique url like Date.now() would, but will make it fairly improbable for duplicates while supporting older browsers.

Also, ignoring the node_modules directory in .gitignore.