You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and change the many occurrences of something = new Date() ... something.getTime() to +new Date (the '+' casts the object to an integer, thus yielding the time in milliseconds).
It's been 4 years, I recommend removing the JSON polyfill as native browser support has improved (and this line means it can no longer polyfill broken JSON implementations):
I'm AFK so I can't test this and submit a PR, but overall is fairly trivial...
The
now
variable here isn't being used in logPageView(), so it can be removed:I suggest getting rid of this workaround:
and change the many occurrences of
something = new Date()
...something.getTime()
to+new Date
(the '+' casts the object to an integer, thus yielding the time in milliseconds).It's been 4 years, I recommend removing the JSON polyfill as native browser support has improved (and this line means it can no longer polyfill broken JSON implementations):
Wrap utf8_encode and sha1 into a polyfill for crypto.subtle.digest.
The text was updated successfully, but these errors were encountered: