From 6fcf0acc62c6ef1e9eabe7d98b94f151a7a2a182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Goc=C5=82awski?= Date: Mon, 18 Jul 2016 18:36:55 +0200 Subject: [PATCH] Refactor. --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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');