Skip to content

Commit 1fb43cb

Browse files
committed
added initialAppState log entry
1 parent dcc6f30 commit 1fb43cb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎v3/js/opt-frontend-common.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,12 @@ function initTogetherJS() {
381381
$("#sharedSessionDisplayDiv").show();
382382
$("#sharedSessionBtn").hide();
383383

384+
// send this to the server for the purposes of logging, but other
385+
// clients shouldn't do anything with this data
386+
if (TogetherJS.running) {
387+
TogetherJS.send({type: "initialAppState", myAppState: getAppState()});
388+
}
389+
384390
requestSync(); // immediately try to sync upon startup so that if
385391
// others are already in the session, we will be
386392
// synced up. and if nobody is here, then this is a NOP.

0 commit comments

Comments
 (0)