Skip to content

Added liveReloadJsUrl config#37

Open
williamweckl wants to merge 1 commit intoember-cli:masterfrom
williamweckl:js_url
Open

Added liveReloadJsUrl config#37
williamweckl wants to merge 1 commit intoember-cli:masterfrom
williamweckl:js_url

Conversation

@williamweckl
Copy link
Copy Markdown

According to the docs, the configuration to change javascript url is liveReloadJsUrl. Unfortunately, no code is using this config.

This PR fixes that.

@aureliosaraiva
Copy link
Copy Markdown

aureliosaraiva commented Nov 11, 2016

@williamweckl This fix resolves my problem.

Test on my project and it worked correctly.

Comment thread index.js
app.use(baseURL + 'ember-cli-live-reload.js', function(request, response, next) {
response.contentType('text/javascript');
response.send(self.dynamicScript(options));
response.send(self.dynamicScript());
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread index.js
if (liveReloadOptions.snipver === undefined) {
liveReloadOptions.snipver = 1;
}
dynamicScript: function(request) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable request is never used!

Comment thread index.js
@@ -5,23 +5,18 @@ module.exports = {

contentFor: function(type) {
var liveReloadPort = process.env.EMBER_CLI_INJECT_LIVE_RELOAD_PORT;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable liveReloadPort is never used!

Comment thread index.js
var liveReloadPort = process.env.EMBER_CLI_INJECT_LIVE_RELOAD_PORT;
var baseURL = process.env.EMBER_CLI_INJECT_LIVE_RELOAD_BASEURL;

if (liveReloadPort && type === 'head') {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change liveReloadPort by liveReloadJsUrl

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