Switch the transform function and also stop calling textPatcher without the metadata

pull/1/head
Caleb James DeLisle 7 years ago
parent 36aee2d174
commit c8928a0811

@ -157,7 +157,7 @@ define([
if (newContent2StrNoMeta !== newContentStrNoMeta) { if (newContent2StrNoMeta !== newContentStrNoMeta) {
console.error("shjson2 !== shjson"); console.error("shjson2 !== shjson");
textPatcher(newContent2StrNoMeta); onLocal();
/* pushing back over the wire is necessary, but it can /* pushing back over the wire is necessary, but it can
result in a feedback loop, which we call a browser result in a feedback loop, which we call a browser
@ -346,7 +346,7 @@ define([
}).nThen(function (waitFor) { }).nThen(function (waitFor) {
cpNfInner = common.startRealtime({ cpNfInner = common.startRealtime({
// really basic operational transform // really basic operational transform
transformFunction: options.transformFunction || JsonOT.validate, transformFunction: options.transformFunction || JsonOT.transform,
// cryptpad debug logging (default is 1) // cryptpad debug logging (default is 1)
// logLevel: 0, // logLevel: 0,
validateContent: options.validateContent || function (content) { validateContent: options.validateContent || function (content) {

Loading…
Cancel
Save