-
Notifications
You must be signed in to change notification settings - Fork 13
.fetch
Arthur Guiot edited this page Sep 17, 2019
·
1 revision
This will take a URL as an argument and a callback function to test the content of the page.
eye.test("API", "node",
$ => $("https://api.ipify.org/?format=json").fetch(data => {
const json = JSON.parse(data)
return json.ip == "1.1.1.1"
})
)
Don't hesitate to ask your questions