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

Use Meteor.absoluteUrl to fix mobile #93

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

edemaine
Copy link

On mobile (e.g. Android), window.location is http://localhost:port (a local mirror server running on but Meteor.absoluteUrl() returns the actual remote server, which is what we want for ShareJS. I've tested that this small patch works on both mobile and on regular web browsers.

This setup also requires tweaking with CORS settings. I've added some documentation to the README about how this can be done (but didn't change the sample settings file, as many people may want to do this).

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

Successfully merging this pull request may close these issues.

1 participant