implement text patching at application layer
This commit is contained in:
parent
4a41575e6d
commit
cb979844f6
@ -18,10 +18,9 @@ define([
|
|||||||
'/common/messages.js',
|
'/common/messages.js',
|
||||||
'/bower_components/reconnectingWebsocket/reconnecting-websocket.js',
|
'/bower_components/reconnectingWebsocket/reconnecting-websocket.js',
|
||||||
'/common/crypto.js',
|
'/common/crypto.js',
|
||||||
'/common/TextPatcher.js',
|
|
||||||
'/common/chainpad.js',
|
'/common/chainpad.js',
|
||||||
'/bower_components/jquery/dist/jquery.min.js',
|
'/bower_components/jquery/dist/jquery.min.js',
|
||||||
], function (Messages, ReconnectingWebSocket, Crypto, TextPatcher) {
|
], function (Messages, ReconnectingWebSocket, Crypto) {
|
||||||
var $ = window.jQuery;
|
var $ = window.jQuery;
|
||||||
var ChainPad = window.ChainPad;
|
var ChainPad = window.ChainPad;
|
||||||
var PARANOIA = true;
|
var PARANOIA = true;
|
||||||
@ -200,12 +199,6 @@ define([
|
|||||||
}
|
}
|
||||||
},200);
|
},200);
|
||||||
|
|
||||||
// TODO implement callbacks and replace sharejs entirely
|
|
||||||
toReturn.patchText = TextPatcher.create({
|
|
||||||
realtime: realtime,
|
|
||||||
logging: true
|
|
||||||
});
|
|
||||||
|
|
||||||
realtime.start();
|
realtime.start();
|
||||||
});
|
});
|
||||||
return toReturn;
|
return toReturn;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user