From c904083d1f5064d2e786e0bc6ee3804b91805d24 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Mon, 2 Jan 2017 10:52:47 +0800 Subject: Remove manual LZString compression for partial socket io event data --- public/vendor/ot/socketio-adapter.js | 3 --- 1 file changed, 3 deletions(-) mode change 100644 => 100755 public/vendor/ot/socketio-adapter.js (limited to 'public/vendor/ot/socketio-adapter.js') diff --git a/public/vendor/ot/socketio-adapter.js b/public/vendor/ot/socketio-adapter.js old mode 100644 new mode 100755 index 329d4f3e..189a081b --- 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); }; -- cgit v1.2.3