fix eslint error
authorLaurent Mazet <mazet@softndesign.org>
Fri, 16 Oct 2020 08:19:47 +0000 (10:19 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Fri, 16 Oct 2020 08:19:47 +0000 (10:19 +0200)
public/trivabble.js

index f5da04db5b31f04782185b1f7df227545501439d..98b50eb67aa33e28ea42f773c5d30ad19bbcf586 100644 (file)
     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 {