From d4fa0d6440e793736339cbf5ff7550fd2f387b2b Mon Sep 17 00:00:00 2001 From: Ryan Blenis Date: Sun, 24 May 2020 22:53:29 -0400 Subject: [PATCH] Fix plugin refresh failure due to PR #1337 --- pluginHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pluginHandler.js b/pluginHandler.js index 12f99f25..ea31b949 100644 --- a/pluginHandler.js +++ b/pluginHandler.js @@ -130,7 +130,7 @@ module.exports.pluginHandler = function (parent) { obj.refreshJS = function (req, res) { // to minimize server reboots when installing new plugins, we call the new data and overwrite the old pluginHandler on the front end res.set('Content-Type', 'text/javascript'); - res.send('pluginHandlerBuilder = ' + obj.prepExports() + ' pluginHandler = new pluginHandlerBuilder(); pluginHandler.callHook("onWebUIStartupEnd");'); + res.send('pluginHandlerBuilder = ' + obj.prepExports() + "\r\n" + ' pluginHandler = new pluginHandlerBuilder(); pluginHandler.callHook("onWebUIStartupEnd");'); } obj.callHook = function (hookName, ...args) {