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

location.origin.replace fails on iOS #3

Open
jomeier opened this issue Apr 26, 2015 · 1 comment
Open

location.origin.replace fails on iOS #3

jomeier opened this issue Apr 26, 2015 · 1 comment

Comments

@jomeier
Copy link

jomeier commented Apr 26, 2015

Hi Scott,

In
ww_client_socket.js
I had to replace 'var host = location.origin.replace(/^http/, 'ws');'
with 'var host = (location.protocol + "//" + location.host).replace(/^http/, 'ws');'

On iOS there is no 'location.origin' defined and my iPad threw an error because of that.

Best regards,

Josef

@CoMMyz
Copy link

CoMMyz commented Jul 14, 2015

After this change IOS seems to work properly but no audio is heard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants