Fix type error when downloading drive root

This commit is contained in:
yflory 2021-12-03 17:27:21 +01:00
parent 493b0ebcca
commit ea2ae2aa34
2 changed files with 12 additions and 10 deletions

View File

@ -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);

View File

@ -698,7 +698,7 @@ define([
var ctx = {
fileHost: privateData.fileHost,
get: common.getPad,
sframeChan: sframeChan,
sframeChan: common.getSframeChannel(),
cache: common.getCache()
};