You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like, if the string "Success" is present then a new Error is thrown. I'm confused how the success case works for this captive portal request 🤔 Could you help me understand?
Do you think it would be helpful to add some documentation around the Apple Captive Portal test page?
The text was updated successfully, but these errors were encountered:
Do you think it would be helpful to add some documentation around the Apple Captive Portal test page?
No no, it was just a wrong condition.
It would be awesome if the test checks for the resulted boolean (which should be true), because I ran tests before submitting the pull request that caused the bug and everything was ok.
Also, silly of me that didn't see that little wrong condition, I think I was moving some code and I didn't notice it.
Hello,
I was reading through your readme and I was curious what you meant by "Retrieve Apple's Captive Portal test page" https://github.com/sindresorhus/is-online/blob/936f3fe354fee3e3bfa80874263e292c40b97524/readme.md#how-it-works
So, I checked in the source code
is-online/index.js
Lines 19 to 20 in 936f3fe
It looks like, if the string
"Success"
is present then a newError
is thrown. I'm confused how the success case works for this captive portal request 🤔 Could you help me understand?Do you think it would be helpful to add some documentation around the Apple Captive Portal test page?
The text was updated successfully, but these errors were encountered: