From a7cbd8c470cf29685ca4bde992d23657bedd5ae5 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 13 May 2016 16:42:14 +0200 Subject: [PATCH] we're pushing json over the wire, so let's use json-ot.validate --- www/canvas/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/canvas/main.js b/www/canvas/main.js index 212f12bfe..47d8c37d1 100644 --- a/www/canvas/main.js +++ b/www/canvas/main.js @@ -9,10 +9,11 @@ define([ '/common/crypto.js', '/common/TextPatcher.js', 'json.sortify', + '/common/json-ot.js', '/bower_components/fabric.js/dist/fabric.min.js', '/bower_components/jquery/dist/jquery.min.js', '/customize/pad.js' -], function (Config, Realtime, Messages, Crypto, TextPatcher, JSONSortify) { +], function (Config, Realtime, Messages, Crypto, TextPatcher, JSONSortify, JsonOT) { var module = window.APP = { }; var $ = module.$ = window.jQuery; var Fabric = module.Fabric = window.fabric; @@ -68,6 +69,7 @@ define([ channel: channel, cryptKey: key, crypto: Crypto, + transformFunction: JsonOT.validate, }; var onInit = config.onInit = function (info) {