add NO_INTERNET option
This commit is contained in:
@@ -16,7 +16,7 @@ const config = {
|
||||
oem: 1,
|
||||
psm: 3,
|
||||
}
|
||||
|
||||
const NO_INTERNET_FR = "Aucun accés a Internet"
|
||||
const MESSAGE_URL_VALIDATION_FR = "envoyé un lien par e-mail."
|
||||
const MESSAGE_URL_VALIDATION_FR_2 = "un lien par e-mail"
|
||||
const MESSAGE_URL_VALIDATION_EN = "Please click on the link we sent by email"
|
||||
@@ -114,6 +114,8 @@ class OCRChecker {
|
||||
return OCRResult.TO_SKIP
|
||||
} else if (result.includes(RECAPTCHA_FAILED_FR)) {
|
||||
return OCRResult.TERMINAED
|
||||
}else if (result.includes(NO_INTERNET_FR)) {
|
||||
return OCRResult.NO_INTERNET
|
||||
} else {
|
||||
return OCRResult.TERMINAED
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user