Fix plugin refresh failure due to PR #1337

Ryan Blenis committed May 24, 2020 at 22:53 UTC 014801a2d9aeb93c22d3336236ad7bebd704f8af
1 file changed +1 -1
pluginHandler.js
+1 -1
@@ -130,7 +130,7 @@ module.exports.pluginHandler = function (parent) {
130 obj.refreshJS = function (req, res) {
131 // to minimize server reboots when installing new plugins, we call the new data and overwrite the old pluginHandler on the front end
132 res.set('Content-Type', 'text/javascript');
133 - res.send('pluginHandlerBuilder = ' + obj.prepExports() + ' pluginHandler = new pluginHandlerBuilder(); pluginHandler.callHook("onWebUIStartupEnd");');
133 + res.send('pluginHandlerBuilder = ' + obj.prepExports() + "\r\n" + ' pluginHandler = new pluginHandlerBuilder(); pluginHandler.callHook("onWebUIStartupEnd");');
134 }
135
136 obj.callHook = function (hookName, ...args) {