diff options
Diffstat (limited to 'srs-anywhere.js')
| -rw-r--r-- | srs-anywhere.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/srs-anywhere.js b/srs-anywhere.js index 8d587ed..857a541 100644 --- a/srs-anywhere.js +++ b/srs-anywhere.js @@ -184,7 +184,7 @@ function endReview() { downloadJSON(window.allCards); } -function rateCard(difficulty) { +function rateCard(rating) { if (!window.card.revealed) { return; } @@ -195,7 +195,7 @@ function rateCard(difficulty) { const s = card._scheduler.s; const d = card._scheduler.d; const i = card._scheduler.i; - const g = card._flagged ? Grade.forgot : Grade[difficulty]; + const g = card._flagged ? Grade.forgot : Grade[rating]; let s_n = undefined, d_n = undefined, i_n = undefined; @@ -212,7 +212,7 @@ function rateCard(difficulty) { let scheduled = today(); scheduled.setDate(scheduled.getDate() + i_n); - if (difficulty === "forgot") { + if (rating === "forgot") { // Shift forgotten card to end. window.cards.push(card); window.cards.splice(window.index, 1); |