Skip to content

Commit

Permalink
Refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoclawski committed Jul 18, 2016
1 parent bf144a1 commit 6fcf0ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ module.exports = {
var self = this;
var app = config.app;
var options = config.options;
var baseURL = options.liveReloadBaseUrl || options.baseURL;

if (options.liveReload !== true) { return; }

process.env.EMBER_CLI_INJECT_LIVE_RELOAD_PORT = options.liveReloadPort;
process.env.EMBER_CLI_INJECT_LIVE_RELOAD_BASEURL = options.liveReloadBaseUrl || options.baseURL;
process.env.EMBER_CLI_INJECT_LIVE_RELOAD_BASEURL = baseURL;

app.use(options.baseURL + 'ember-cli-live-reload.js', function(request, response, next) {
response.contentType('text/javascript');
Expand Down

0 comments on commit 6fcf0ac

Please sign in to comment.