diff --git a/www/code/main.js b/www/code/main.js index 92c63560c..83f5c92d0 100644 --- a/www/code/main.js +++ b/www/code/main.js @@ -157,8 +157,8 @@ define([ readOnly: readOnly, crypto: Crypto.createEncryptor(secret.keys), setMyID: setMyID, - transformFunction: JsonOT.transform || JsonOT.validate, - network: Cryptpad.getNetwork() + network: Cryptpad.getNetwork(), + transformFunction: JsonOT.validate, }; var canonicalize = function (t) { return t.replace(/\r\n/g, '\n'); }; diff --git a/www/pad/main.js b/www/pad/main.js index ec2b3069f..58f51d583 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -404,7 +404,7 @@ define([ crypto: Crypto.createEncryptor(secret.keys), // really basic operational transform - transformFunction : JsonOT.transform || JsonOT.validate, + transformFunction : JsonOT.validate, // cryptpad debug logging (default is 1) // logLevel: 0,