diff --git a/src/workers/OCRChecker.js b/src/workers/OCRChecker.js index 3f15761..96fe260 100644 --- a/src/workers/OCRChecker.js +++ b/src/workers/OCRChecker.js @@ -108,6 +108,10 @@ class OCRChecker { await this.deleteFile(fileName) await this.deleteFile(screenShot) return OCRResult.SUCCESS + } else if (result.includes(BRAVE_NOTIFICATION)) { + await this.deleteFile(fileName) + await this.deleteFile(screenShot) + return OCRResult.BRAVE_NOTIFICATION } else if (result.includes(MESSAGE_FILL_FIELD_FR) || result.includes(MESSAGE_FILL_FIELD_FR_2) || result.includes(MESSAGE_FILL_FIELD_FR_3) || result.includes(MESSAGE_FILL_FIELD_FR_4) || result.includes(MESSAGE_FILL_FIELD_FR_5)) { await this.deleteFile(fileName) await this.deleteFile(screenShot) @@ -175,10 +179,6 @@ class OCRChecker { await this.deleteFile(fileName) await this.deleteFile(screenShot) return OCRResult.BRAVE_PRIVACY - } else if (result.includes(BRAVE_NOTIFICATION)) { - await this.deleteFile(fileName) - await this.deleteFile(screenShot) - return OCRResult.BRAVE_NOTIFICATION } else if (result.includes(BRAVE_SKIP_PUB) || result.includes(BRAVE_SKIP_PUB_2) || result.includes(BRAVE_SKIP_PUB_3) || result.includes(BRAVE_SKIP_PUB_4) || result.includes(BRAVE_SKIP_PUB_5)) { await this.deleteFile(fileName) await this.deleteFile(screenShot)