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

Passing port and host to livereload.js file as regex fails to parse URL with prefix #51

Merged
merged 1 commit into from
Aug 3, 2018
Merged

Conversation

SparshithNR
Copy link

Livereload.js has a regex to parse and get host and port. If the URL passed is in localhost:4200/livereloadPrefix/livereload.js then logic fails to parse it.
I have created a PR to fix this issue in livereload.js. But to make it work now we can pass host and port along with URL itself so that we can unblock ourself.

@rwjblue
Copy link
Member

rwjblue commented Aug 3, 2018

Have you confirmed that this change works properly when used in an app?

@SparshithNR
Copy link
Author

Yes.
Test:

  • ember new test-app
  • cd test-app
  • npm link ember-cli-inject-live-reload
  • ember s
    Works with livereload changes in ember-cli as well.
    Mentioned in the issue in livereload.js repo.

@rwjblue rwjblue merged commit 4d0930c into ember-cli:master Aug 3, 2018
@rwjblue
Copy link
Member

rwjblue commented Aug 3, 2018

ember-cli-inject-live-reload 1.8.2 published 🎉

@SparshithNR SparshithNR deleted the prefix-fix branch September 27, 2018 15:04
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.

2 participants