Add some debugging lines to help synthesize error cases

pull/1/head
Caleb James DeLisle 7 years ago
parent 69014e5fde
commit e62c5e1d07

@ -154,7 +154,9 @@ define([], function () {
// Do not remove wcObject, it allows us to use a new 'wc' without changing the handler if we // Do not remove wcObject, it allows us to use a new 'wc' without changing the handler if we
// want to keep the same chainpad (realtime) object // want to keep the same chainpad (realtime) object
try { try {
if (window.Cryptpad_SUPPRESS_MSG) { return; }
wcObject.wc.bcast(message).then(function() { wcObject.wc.bcast(message).then(function() {
if (window.Cryptpad_SUPPRESS_ACK) { return; }
cb(); cb();
}, function(err) { }, function(err) {
// The message has not been sent, display the error. // The message has not been sent, display the error.

Loading…
Cancel
Save