Refactored out TextPatcher and JsonOT and replaced with new ChainPad

This commit is contained in:
Caleb James DeLisle
2017-11-09 15:36:49 +01:00
parent 7f8147b18b
commit 75130150d5
31 changed files with 82 additions and 1447 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
define([
'jquery',
'/bower_components/chainpad-json-validator/json-ot.js',
'/bower_components/chainpad-crypto/crypto.js',
'/bower_components/chainpad/chainpad.dist.js',
], function ($, JsonOT, Crypto) {
], function ($, Crypto) {
var ChainPad = window.ChainPad;
var History = {};
@@ -28,7 +28,7 @@ define([
return ChainPad.create({
userName: 'history',
initialState: '',
transformFunction: JsonOT.validate,
patchTransformer: ChainPad.NaiveJSONStransformer,
logLevel: 0,
noPrune: true
});