From 42fa76460894bd458655ff6c6e13b91bdf5211f9 Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Thu, 21 Jul 2016 09:32:21 -0500 Subject: [PATCH] fix js-propagate for restarted secondary instances (#4874) --- loader.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/loader.js b/loader.js index 52e441bb9a..56e4864289 100644 --- a/loader.js +++ b/loader.js @@ -87,21 +87,10 @@ Loader.addWorkerEvents = function(worker) { if (message && typeof message === 'object' && message.action) { switch (message.action) { case 'ready': - if (Loader.js.target['nodebb.min.js'] && Loader.js.target['nodebb.min.js'].cache && !worker.isPrimary) { + if (Loader.js.target['nodebb.min.js'] && Loader.js.target['acp.min.js'] && !worker.isPrimary) { worker.send({ action: 'js-propagate', - cache: Loader.js.target['nodebb.min.js'].cache, - map: Loader.js.target['nodebb.min.js'].map, - target: 'nodebb.min.js' - }); - } - - if (Loader.js.target['acp.min.js'] && Loader.js.target['acp.min.js'].cache && !worker.isPrimary) { - worker.send({ - action: 'js-propagate', - cache: Loader.js.target['acp.min.js'].cache, - map: Loader.js.target['acp.min.js'].map, - target: 'acp.min.js' + data: Loader.js.target }); }