From 5bab3c21c9f69254093ea8d9d29edb3f4a18776c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Buscht=C3=B6ns?= Date: Mon, 15 Oct 2018 18:43:20 +0200 Subject: [PATCH] fix: add empty string in `dynamicScript` --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f5d1161..895a330 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';