Skip to content

Commit bbc160b

Browse files
committed
do a wee bit more logging for TogetherJS
1 parent 50aaab0 commit bbc160b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ function snapshotCodeDiff() {
186186

187187
curCode = newCode;
188188
logEvent({type: 'editCode', delta: delta});
189+
190+
if (typeof TogetherJS !== 'undefined' && TogetherJS.running) {
191+
TogetherJS.send({type: "editCode", delta: delta});
192+
}
189193
}
190194
}
191195

@@ -517,6 +521,7 @@ function initTogetherJS() {
517521
if (TogetherJS.running) {
518522
TogetherJS.send({type: "initialAppState",
519523
myAppState: getAppState(),
524+
user_uuid: supports_html5_storage() ? localStorage.getItem('opt_uuid') : undefined,
520525
// so that you can tell whether someone else
521526
// shared a TogetherJS URL with you to invite you
522527
// into this shared session:

0 commit comments

Comments
 (0)