handle dictionary loading error

This commit is contained in:
Laurent Mazet 2020-06-10 22:19:34 +02:00
parent aef044cdb1
commit f48df993ac
3 changed files with 7 additions and 1 deletions

View File

@ -177,3 +177,6 @@ msgstr "Tous les mots sont corrects : {0}"
msgid "No new word found"
msgstr "Aucun nouveau mot trouvé"
msgid "Incorrect dictionary file."
msgstr "Dictionaire incorrect."

View File

@ -183,3 +183,6 @@ msgstr ""
msgid "No new word found"
msgstr ""
msgid "Incorrect dictionary file."
msgstr ""

View File

@ -167,7 +167,7 @@
dictionary = file.responseText.split("\n");
document.getElementById("check-spelling").disabled = false;
} catch (e) {
console.error(e);
myAlert(_("Incorrect dictionary file."));
}
}
};