Skip to content

Commit

Permalink
fix: syntax error in dynamicScript
Browse files Browse the repository at this point in the history
Fixes #56.
  • Loading branch information
buschtoens authored Oct 15, 2018
1 parent 21a7005 commit 7f5ffad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = {
var defaultPort = location.protocol === 'https:' ? 443 : 80;
var port = liveReloadPort || location.port || defaultPort;
var path = '${path}';
var prefixURL = '${liveReloadPort ? "(location.protocol || 'http:') + '//' + host + ':' + " + liveReloadPort : ''}';
var prefixURL = ${liveReloadPort ? "(location.protocol || 'http:') + '//' + host + ':' + " + liveReloadPort : ''};
var src = srcUrl || prefixURL + '${liveReloadPath + 'livereload.js?port='}' + port + '&host=' + host + path;
var script = document.createElement('script');
script.type = 'text/javascript';
Expand Down

0 comments on commit 7f5ffad

Please sign in to comment.