From c512fed93a95bf567a42948f277a9766347aae1b Mon Sep 17 00:00:00 2001
From: barisusakli <barisusakli@gmail.com>
Date: Thu, 3 Mar 2016 07:14:35 +0200
Subject: [PATCH] one more fix

---
 loader.js | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/loader.js b/loader.js
index 5451a4e412..13572d26fc 100644
--- a/loader.js
+++ b/loader.js
@@ -85,12 +85,21 @@ Loader.addWorkerEvents = function(worker) {
 		if (message && typeof message === 'object' && message.action) {
 			switch (message.action) {
 				case 'ready':
-					if (Loader.js[message.target].cache && !worker.isPrimary) {
+					if (Loader.js.target['nodebb.min.js'].cache && !worker.isPrimary) {
 						worker.send({
 							action: 'js-propagate',
-							cache: Loader.js[message.target].cache,
-							map: Loader.js[message.target].map,
-							target: message.target
+							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'].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'
 						});
 					}