diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 3829de949..d3e34c8ce 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -1406,15 +1406,17 @@ define([ } break; case "cursor": - cursor.updateCursor({ - type: "cursor", - messages: [{ - cursor: obj.cursor, - time: +new Date(), - user: myUniqueOOId, - useridoriginal: myOOId - }] - }); + if (cursor && cursor.updateCursor) { + cursor.updateCursor({ + type: "cursor", + messages: [{ + cursor: obj.cursor, + time: +new Date(), + user: myUniqueOOId, + useridoriginal: myOOId + }] + }); + } break; case "getLock": handleLock(obj, send); diff --git a/www/common/sframe-common-file.js b/www/common/sframe-common-file.js index 582d41c59..f32a497b3 100644 --- a/www/common/sframe-common-file.js +++ b/www/common/sframe-common-file.js @@ -698,7 +698,7 @@ define([ var ctx = { fileHost: privateData.fileHost, get: common.getPad, - sframeChan: sframeChan, + sframeChan: common.getSframeChannel(), cache: common.getCache() };