allow custom words not in dict

This commit is contained in:
Evan You 2022-01-25 12:40:10 +08:00
parent 2de317f17f
commit ce61ee3e6e

View File

@ -6,8 +6,6 @@ export function getWordOfTheDay() {
const query = atob(location.search.slice(1))
if (query.length !== 5) {
alert(`Incorrect word length from encoded query. ${defaultMessage}`)
} else if (!allWords.includes(query)) {
alert(`Encoded query is not in the word list. ${defaultMessage}`)
} else {
return query
}