Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add a flag to verify if a browser supports some form of XHR request. …
…Fixes #7030.
- Loading branch information
959c20f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So is it safe to assume if
window.XMLHttpRequest
exists there won't be some kind of error when callingxhr()
should there be atry-catch
for this flag ?959c20f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's probably a safe assumption - we don't wrap the xhr() call in a try/catch now, inside ajax(), and we don't have problems. Most of the exceptions occur either with setting headers or sending.