Skip to content

Commit 6a05d76

Browse files
committed
Save references to room and previewTracks
This makes debugging easier.
1 parent 400b341 commit 6a05d76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quickstart/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ $.getJSON('/token', function(data) {
8383

8484
// Successfully connected!
8585
function roomJoined(room) {
86-
activeRoom = room;
86+
window.room = activeRoom = room;
8787

8888
log("Joined as '" + identity + "'");
8989
document.getElementById('button-join').style.display = 'none';
@@ -145,7 +145,7 @@ document.getElementById('button-preview').onclick = function() {
145145
: Video.createLocalTracks();
146146

147147
localTracksPromise.then(function(tracks) {
148-
previewTracks = tracks;
148+
window.previewTracks = previewTracks = tracks;
149149
var previewContainer = document.getElementById('local-media');
150150
if (!previewContainer.querySelector('video')) {
151151
attachTracks(tracks, previewContainer);

0 commit comments

Comments
 (0)