Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE8 is determined wrong as non standard browser environment. #597

Closed
eu81273 opened this issue Dec 15, 2016 · 1 comment
Closed

IE8 is determined wrong as non standard browser environment. #597

eu81273 opened this issue Dec 15, 2016 · 1 comment

Comments

@eu81273
Copy link

eu81273 commented Dec 15, 2016

In IE8, the value of typeof document.createElemen is object, not function so this isStandardBrowserEnv returns false.

function isStandardBrowserEnv() {
  return (
    typeof window !== 'undefined' &&
    typeof document !== 'undefined' &&
    typeof document.createElement !== 'function'
  );
}

Because of this wrong determine, XDomainRequest is not working in IE8. I made a pull request for fix this, but failed to pass the CI.

@nickuraltsev
Copy link
Member

Fixed by #731. Thank you!

@axios axios locked and limited conversation to collaborators May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants