Improve clarity in card info code a tiny little bit

This commit is contained in:
RumovZ 2021-10-17 21:23:11 +02:00
parent ec02a4218e
commit bbba21126f
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ class CardInfoDialog(QDialog):
self.setLayout(layout)
self.web.eval(
"let cardInfo = anki.cardInfo(document.getElementById('main'));\n" \
"const cardInfo = anki.cardInfo(document.getElementById('main'));\n" \
"cardInfo.then((c) => c.$set({ includeRevlog: true }));"
)
self.update_card(card_id)

View file

@ -12,7 +12,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
export let cardId: number | undefined = undefined;
export let includeRevlog: boolean | undefined = undefined;
let stats: Stats.CardStatsResponse | undefined = undefined;
let stats: Stats.CardStatsResponse | undefined;
$: if (cardId === undefined) {
stats = undefined;