Skip to content

Commit ce547f7

Browse files
committed
make more progress on OPT-Office-Mix
1 parent 45d1162 commit ce547f7

3 files changed

Lines changed: 70 additions & 501 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ function updateAppDisplay(newAppMode) {
840840
$("#pyOutputPane").show();
841841
$("#embedLinkDiv").show();
842842

843-
if (!TogetherJS.running) {
843+
if (typeof TogetherJS === 'undefined' || !TogetherJS.running) {
844844
$("#surveyHeader").show();
845845
}
846846

@@ -872,7 +872,7 @@ function updateAppDisplay(newAppMode) {
872872
// debounce
873873
$.doTimeout('pyCodeOutputDivScroll', 100, function() {
874874
// note that this will send a signal back and forth both ways
875-
if (TogetherJS.running) {
875+
if (typeof TogetherJS !== 'undefined' && TogetherJS.running) {
876876
// (there's no easy way to prevent this), but it shouldn't keep
877877
// bouncing back and forth indefinitely since no the second signal
878878
// causes no additional scrolling

0 commit comments

Comments
 (0)