From 7f5ffadf304667adb6e6ffccf555d3473cf725da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Buscht=C3=B6ns?= Date: Mon, 15 Oct 2018 18:41:33 +0200 Subject: [PATCH] fix: syntax error in `dynamicScript` Fixes #56. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index edb036d..f5d1161 100644 --- a/index.js +++ b/index.js @@ -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';