change brave notification order

This commit is contained in:
Lei PAN
2023-10-24 08:16:19 +02:00
parent a36a9cf7cb
commit cc868e0110
+4 -4
View File
@@ -108,6 +108,10 @@ class OCRChecker {
await this.deleteFile(fileName) await this.deleteFile(fileName)
await this.deleteFile(screenShot) await this.deleteFile(screenShot)
return OCRResult.SUCCESS 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)) { } 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(fileName)
await this.deleteFile(screenShot) await this.deleteFile(screenShot)
@@ -175,10 +179,6 @@ class OCRChecker {
await this.deleteFile(fileName) await this.deleteFile(fileName)
await this.deleteFile(screenShot) await this.deleteFile(screenShot)
return OCRResult.BRAVE_PRIVACY 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)) { } 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(fileName)
await this.deleteFile(screenShot) await this.deleteFile(screenShot)