Fix type error when downloading drive root

pull/1/head
yflory 3 years ago
parent 493b0ebcca
commit ea2ae2aa34

@ -1406,15 +1406,17 @@ define([
} }
break; break;
case "cursor": case "cursor":
cursor.updateCursor({ if (cursor && cursor.updateCursor) {
type: "cursor", cursor.updateCursor({
messages: [{ type: "cursor",
cursor: obj.cursor, messages: [{
time: +new Date(), cursor: obj.cursor,
user: myUniqueOOId, time: +new Date(),
useridoriginal: myOOId user: myUniqueOOId,
}] useridoriginal: myOOId
}); }]
});
}
break; break;
case "getLock": case "getLock":
handleLock(obj, send); handleLock(obj, send);

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

Loading…
Cancel
Save