|
|
|
@ -1058,7 +1058,7 @@ define([
|
|
|
|
|
onConnect: function (wc, sendMessage) {
|
|
|
|
|
channel.sendMessage = function (msg, cId, cb) {
|
|
|
|
|
// Send to server
|
|
|
|
|
sendMessage(msg, cb);
|
|
|
|
|
sendMessage(msg, function () {
|
|
|
|
|
// Broadcast to other tabs
|
|
|
|
|
channel.pushHistory(CpNfWorker.removeCp(msg), /^cp\|/.test(msg));
|
|
|
|
|
channel.bcast("PAD_MESSAGE", {
|
|
|
|
@ -1066,6 +1066,8 @@ define([
|
|
|
|
|
msg: CpNfWorker.removeCp(msg),
|
|
|
|
|
validateKey: channel.data.validateKey
|
|
|
|
|
}, cId);
|
|
|
|
|
cb();
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
channel.wc = wc;
|
|
|
|
|
channel.queue.forEach(function (data) {
|
|
|
|
|