diff --git a/index.js b/index.js index 04c6e49..af80d62 100644 --- a/index.js +++ b/index.js @@ -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');