From e62c5e1d07dd81da0af753d98c0f0920b7a10c89 Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Tue, 26 Sep 2017 15:58:25 +0200 Subject: [PATCH] Add some debugging lines to help synthesize error cases --- www/common/sframe-chainpad-netflux-outer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/common/sframe-chainpad-netflux-outer.js b/www/common/sframe-chainpad-netflux-outer.js index 54688c2e3..b62a25a05 100644 --- a/www/common/sframe-chainpad-netflux-outer.js +++ b/www/common/sframe-chainpad-netflux-outer.js @@ -154,7 +154,9 @@ define([], function () { // 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 try { + if (window.Cryptpad_SUPPRESS_MSG) { return; } wcObject.wc.bcast(message).then(function() { + if (window.Cryptpad_SUPPRESS_ACK) { return; } cb(); }, function(err) { // The message has not been sent, display the error.