fix eslint error

This commit is contained in:
Laurent Mazet 2020-10-16 10:19:47 +02:00
parent 356a2ef7d8
commit b23f70ea31
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@
function checkDictionaryExistance() {
const code = document.getElementById("board-lang").value;
if (DictionaryList.hasOwnProperty(code) && getSetting("ENABLE_SPELL_CHECKER") && !document.getElementById("disable-spell-checker").checked) {
if (Object.prototype.hasOwnProperty.call(DictionaryList, code) && getSetting("ENABLE_SPELL_CHECKER") && !document.getElementById("disable-spell-checker").checked) {
document.getElementById("check-spelling").hidden = false;
document.getElementById("info-spell-checking").hidden = false;
} else {