diff options
author | Yukai Huang | 2017-01-02 15:09:19 +0800 |
---|---|---|
committer | Yukai Huang | 2017-01-02 15:09:19 +0800 |
commit | 65acaea8cf47629c7e5710e444973a04526b047d (patch) | |
tree | f09efeaab513ffd7fb58d2af17a1ea1070a02251 /public/vendor/ot/socketio-adapter.js | |
parent | 1e276fb37a4ed8e19234de7192d8593314f53799 (diff) | |
parent | ac2b100d35bd9dd9bcbca8e622a5e7ed48222598 (diff) |
Merge branch 'master' into frontend-next
Diffstat (limited to 'public/vendor/ot/socketio-adapter.js')
-rwxr-xr-x[-rw-r--r--] | public/vendor/ot/socketio-adapter.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/public/vendor/ot/socketio-adapter.js b/public/vendor/ot/socketio-adapter.js index 329d4f3e..189a081b 100644..100755 --- a/public/vendor/ot/socketio-adapter.js +++ b/public/vendor/ot/socketio-adapter.js @@ -24,8 +24,6 @@ ot.SocketIOAdapter = (function () { self.trigger('selection', clientId, selection); }); socket.on('operations', function (head, operations) { - operations = LZString.decompressFromUTF16(operations); - operations = JSON.parse(operations); self.trigger('operations', head, operations); }); socket.on('selection', function (clientId, selection) { @@ -37,7 +35,6 @@ ot.SocketIOAdapter = (function () { } SocketIOAdapter.prototype.sendOperation = function (revision, operation, selection) { - operation = LZString.compressToUTF16(JSON.stringify(operation)); this.socket.emit('operation', revision, operation, selection); }; |