diff --git a/src/scripts/h5p-crossword-cell.js b/src/scripts/h5p-crossword-cell.js index b9cb847..dfdab2d 100644 --- a/src/scripts/h5p-crossword-cell.js +++ b/src/scripts/h5p-crossword-cell.js @@ -239,7 +239,7 @@ export default class CrosswordCell { * @returns {string} Current answer. */ getCurrentAnswer() { - return this.cell.innerText.substr(0, 1); + return this.cell.innerText.substring(0, 1); } /**