diff --git a/www/code/main.js b/www/code/main.js index fe999c6c0..2b6553cf0 100644 --- a/www/code/main.js +++ b/www/code/main.js @@ -646,7 +646,7 @@ define([ return cursor; }; - var onRemote = config.onRemote = function (info) { + var onRemote = config.onRemote = function () { if (initializing) { return; } var scroll = editor.getScrollInfo(); diff --git a/www/pad/main.js b/www/pad/main.js index 4d9cd0244..443463b1d 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -475,12 +475,12 @@ define([ } }; - var onRemote = realtimeOptions.onRemote = function (info) { + var onRemote = realtimeOptions.onRemote = function () { if (initializing) { return; } var oldShjson = stringifyDOM(inner); - var shjson = info.realtime.getUserDoc(); + var shjson = module.realtime.getUserDoc(); // remember where the cursor is cursor.update(); @@ -679,7 +679,7 @@ define([ module.users = info.userList.users; module.realtime = info.realtime; - var shjson = info.realtime.getUserDoc(); + var shjson = module.realtime.getUserDoc(); var newPad = false; if (shjson === '') { newPad = true; } diff --git a/www/slide/main.js b/www/slide/main.js index 995d8b767..5654f43ab 100644 --- a/www/slide/main.js +++ b/www/slide/main.js @@ -840,7 +840,7 @@ define([ return cursor; }; - var onRemote = config.onRemote = function (info) { + var onRemote = config.onRemote = function () { if (initializing) { return; } var scroll = editor.getScrollInfo();