|
|
@ -9,10 +9,11 @@ define([
|
|
|
|
'/common/crypto.js',
|
|
|
|
'/common/crypto.js',
|
|
|
|
'/common/TextPatcher.js',
|
|
|
|
'/common/TextPatcher.js',
|
|
|
|
'json.sortify',
|
|
|
|
'json.sortify',
|
|
|
|
|
|
|
|
'/common/json-ot.js',
|
|
|
|
'/bower_components/fabric.js/dist/fabric.min.js',
|
|
|
|
'/bower_components/fabric.js/dist/fabric.min.js',
|
|
|
|
'/bower_components/jquery/dist/jquery.min.js',
|
|
|
|
'/bower_components/jquery/dist/jquery.min.js',
|
|
|
|
'/customize/pad.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.APP = { };
|
|
|
|
var $ = module.$ = window.jQuery;
|
|
|
|
var $ = module.$ = window.jQuery;
|
|
|
|
var Fabric = module.Fabric = window.fabric;
|
|
|
|
var Fabric = module.Fabric = window.fabric;
|
|
|
@ -68,6 +69,7 @@ define([
|
|
|
|
channel: channel,
|
|
|
|
channel: channel,
|
|
|
|
cryptKey: key,
|
|
|
|
cryptKey: key,
|
|
|
|
crypto: Crypto,
|
|
|
|
crypto: Crypto,
|
|
|
|
|
|
|
|
transformFunction: JsonOT.validate,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var onInit = config.onInit = function (info) {
|
|
|
|
var onInit = config.onInit = function (info) {
|
|
|
|