Fix and then disable the new OT

pull/1/head
Caleb James DeLisle 7 years ago
parent ce5d24a1d3
commit d7e9498143

@ -362,8 +362,11 @@ define([
}).nThen(function (waitFor) {
cpNfInner = common.startRealtime({
// really basic operational transform
//transformFunction: options.transformFunction || JsonOT.validate,
patchTransformer: options.patchTransformer || JsonOT.patchTransformer,
transformFunction: options.transformFunction || JsonOT.validate,
// This one causes a big mess.
//patchTransformer: options.patchTransformer || JsonOT.patchTransformer,
// cryptpad debug logging (default is 1)
// logLevel: 0,
validateContent: options.validateContent || function (content) {

@ -38,6 +38,7 @@ define([
var userName = config.userName;
var initialState = config.initialState;
var transformFunction = config.transformFunction;
var patchTransformer = config.patchTransformer;
var validateContent = config.validateContent;
var avgSyncMilliseconds = config.avgSyncMilliseconds;
var logLevel = typeof(config.logLevel) !== 'undefined'? config.logLevel : 1;
@ -50,6 +51,7 @@ define([
userName: userName,
initialState: initialState,
transformFunction: transformFunction,
patchTransformer: patchTransformer,
validateContent: validateContent,
avgSyncMilliseconds: avgSyncMilliseconds,
logLevel: logLevel

Loading…
Cancel
Save