Merge pull request #1405 from ryanblenis/1337-fix

Fix plugin refresh failure due to PR #1337
This commit is contained in:
Ylian Saint-Hilaire 2020-05-24 23:29:22 -07:00 committed by GitHub
commit 224c99c57a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {