allow custom words not in dict
This commit is contained in:
parent
2de317f17f
commit
ce61ee3e6e
@ -6,8 +6,6 @@ export function getWordOfTheDay() {
|
|||||||
const query = atob(location.search.slice(1))
|
const query = atob(location.search.slice(1))
|
||||||
if (query.length !== 5) {
|
if (query.length !== 5) {
|
||||||
alert(`Incorrect word length from encoded query. ${defaultMessage}`)
|
alert(`Incorrect word length from encoded query. ${defaultMessage}`)
|
||||||
} else if (!allWords.includes(query)) {
|
|
||||||
alert(`Encoded query is not in the word list. ${defaultMessage}`)
|
|
||||||
} else {
|
} else {
|
||||||
return query
|
return query
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user