summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--public/js/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 7f9c8ad8..87c69770 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2360,6 +2360,8 @@ editor.on('update', function () {
});
});
socket.on('check', function (data) {
+ data = LZString.decompressFromUTF16(data);
+ data = JSON.parse(data);
//console.log(data);
updateLastInfo(data);
});
@@ -2371,6 +2373,8 @@ var otk = null;
var owner = null;
var permission = null;
socket.on('refresh', function (data) {
+ data = LZString.decompressFromUTF16(data);
+ data = JSON.parse(data);
//console.log(data);
docmaxlength = data.docmaxlength;
editor.setOption("maxLength", docmaxlength);