X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/50442220cc52bad55c1003de34f8dada958650d5..3232c47b5c02deecf8391974323073e82f038c33:/word/multichoice.js diff --git a/word/multichoice.js b/word/multichoice.js index 761b966..5908fdc 100644 --- a/word/multichoice.js +++ b/word/multichoice.js @@ -1,6 +1,8 @@ class WordMultiChoice extends WordQuiz { next() { + if (this.words.length < 4) return; let word = this.words.shift(); + if (!word[2]) return this.next(); let form = put(this.form, '+img[src=$]+ul', `/data/word/en/${word[2]}.jpg`, );