Skip to content

Commit cde23bb

Browse files
committed
Merge pull request xomaczar#4 from jrobeson/use-livereload-host-setting
use new options.LiveReloadHost in liveReloadHostName
2 parents 6772e53 + 836c02c commit cde23bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ function LiveStyleReloader(options){
1212
appCssPattern = new RegExp('^' + options.project.root + '/app/styles/*'),
1313
ui = options.ui,
1414
http = null,
15-
liveReloadHostname = ['http://', options.host, ':', options.liveReloadPort].join(''),
15+
liveReloadHost = options.liveReloadHost || options.host
16+
liveReloadHostname = [(options.ssl ? 'https://' :'http://'), liveReloadHost, ':', options.liveReloadPort].join(''),
1617
reloadCssPattern = options.reloadCssPattern;
1718

1819
var getDirtyAsset = function(changedFilePath){

0 commit comments

Comments
 (0)