we're pushing json over the wire, so let's use json-ot.validate
parent
3ea270acb9
commit
a7cbd8c470
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue