Shuffled around some assertions and logs

This commit is contained in:
Caleb James DeLisle
2016-03-25 14:14:19 +01:00
parent 420a7098a6
commit f62ec85a4c
3 changed files with 7 additions and 9 deletions

View File

@@ -211,7 +211,6 @@ define([
warn("realtime.getUserDoc() !== newText");
}
//try{throw new Error();}catch(e){console.log(e.stack);}
console.log("2: " + realtime.Sha.hex_sha256(realtime.getUserDoc()));
};
// pass your shiny new realtime into initialization functions
@@ -276,10 +275,7 @@ define([
allMessages.push(message);
if (!initializing) {
// FIXME this is out of sync with the application logic
console.log("xxx");
window.cryptpad_propogate();
} else {
console.log("init");
}
realtime.message(message);
if (/\[5,/.test(message)) { verbose("pong"); }