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
Safari 9 requires polyfill? #31
Comments
Welp, I learned something new today - the spec says it has to be I'll accept a PR that makes the check more naive in order to cover this case. |
Will be released in |
@glenjamin Great, thanks! Btw you can probably simplify it even further to |
Probably, but for some reason I always feel safer with typeof :) |
Just noticed that the following warning pops up in Safari 9:
[Warning] webpack-hot-middleware's client requires EventSource to work. You should include a polyfill if you want to support this browser: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events#Tools
According to w3c spec eventsource interface need to have a constructor but it doesn't necessary need to be a function.
It is an object in Safari 9 with following properties
Is there any reason why not to just check for
window.EventSource !== undefined
instead of requiring EventSource to be function?The text was updated successfully, but these errors were encountered: