mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 23:25:53 -05:00
Fix plugin refresh failure due to PR #1337
This commit is contained in:
parent
1498fe8cf5
commit
014801a2d9
@ -130,7 +130,7 @@ module.exports.pluginHandler = function (parent) {
|
|||||||
obj.refreshJS = function (req, res) {
|
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
|
// 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.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) {
|
obj.callHook = function (hookName, ...args) {
|
||||||
|
Loading…
Reference in New Issue
Block a user