Added customCheck. Bug corrections. Cleanup.

This commit is contained in:
ybouane 2024-10-10 00:33:11 -04:00
parent c1c0032eb1
commit 35031898d5
2 changed files with 18 additions and 12 deletions

View file

@ -15,12 +15,12 @@ export default {
id : 'homepage', // optional
name : 'Homepage',
url : 'https://www.google.com',
request : {
request : { // fetch options
method: 'GET',
},
mustFind : 'Feeling Lucky', // String | Regex | Function | AsyncFunction
mustNotFind : /not found/i,
followRedirects : true,
mustNotFind : /Page not found/i,
customCheck : (content, response)=>{return true;},
validStatus : [200],
}
]