Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

WebSocket support broken for Safari #241

Open
kflynn opened this issue Aug 5, 2016 · 2 comments
Open

WebSocket support broken for Safari #241

kflynn opened this issue Aug 5, 2016 · 2 comments

Comments

@kflynn
Copy link
Contributor

kflynn commented Aug 5, 2016

Safari causes the QuarkWebSocket not supported in this environment! to appear. It would appear that I botched that check...

@kflynn
Copy link
Contributor Author

kflynn commented Aug 5, 2016

@ark3
Copy link
Contributor

ark3 commented Aug 8, 2016

For future reference...

Platform.prototype.isBrowser = function () {
    return (typeof(window) === "object") && (typeof(window.WebSocket) === "function");
};

It looks like Safari returns "object" for window.WebSocket's type.

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