diff --git a/www/code/main.js b/www/code/main.js index 7a913aa3c..238cf2607 100644 --- a/www/code/main.js +++ b/www/code/main.js @@ -154,7 +154,7 @@ define([ readOnly: readOnly, crypto: Crypto.createEncryptor(secret.keys), setMyID: setMyID, - transformFunction: JsonOT.transform || JsonOT.validate, + 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 9ec08407d..d2eaa480b 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -397,7 +397,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,