Skip to content

Commit

Permalink
fixed ci checking
Browse files Browse the repository at this point in the history
  • Loading branch information
sarco3t committed Dec 11, 2018
1 parent ae2773a commit cd97fb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/packs/application.js
Expand Up @@ -101,14 +101,14 @@ onLoad(() => {
const requestId = `${dedupUuid}/${hashCode(data)}`;
xhr.setRequestHeader('X-AJAX-Deduplicate', requestId);
});

const reviewCounter = $('.reviews-count');
if (reviewCounter.length > 0 && parseInt(reviewCounter.text().trim(), 10) > 50) {
const reviewAlertedAt = parseInt(localStorage['ms-review-alerted-at'] || 0, 10);
const diff = (Date.now() - reviewAlertedAt) / 1000;
if (diff >= 14400) {
reviewCounter.attr('data-toggle', 'tooltip').attr('data-placement', 'bottom')
.attr('title', 'Got 5 minutes to do 10 reviews?');
.attr('title', 'Got 5 minutes to do 10 reviews?');
reviewCounter.tooltip('show');
localStorage['ms-review-alerted-at'] = Date.now().toString();
}
Expand Down

0 comments on commit cd97fb2

Please sign in to comment.