Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jspenguin2017 committed May 6, 2018
1 parent 5ea57a8 commit 84ac23a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/reporter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ $("#msg-specific-error button").on("click", () => {
{
const init = () => {
let lastReport = localStorage.getItem(storageKeyLastReport);
// Maximum accuracy of integer is about 16 digits, this is good for
// 30 thousand years
// Maximum accuracy of integer is about 16 digits
// Cap at 15 digits to be safe, which is still more than enough to
// represent the next 30 thousand years
if (/^\d{13,15}$/.test(lastReport)) {
lastReport = parseInt(lastReport);
}
Expand Down

0 comments on commit 84ac23a

Please sign in to comment.