Skip to content

Commit 41ec46d

Browse files
committed
bah
1 parent 44d4a50 commit 41ec46d

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎v3/js/opt-frontend.js‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,6 @@ function setVisibleAppState(appState) {
124124
function initTogetherJS() {
125125
$("#surveyHeader").remove(); // kill this to save space
126126

127-
var role = $.bbq.getState('role');
128-
isTutor = (role == 'tutor'); // GLOBAL
129-
130127
if (isTutor) {
131128
$("#togetherBtn").html("TUTOR - Join live help session");
132129
$("#togetherJSHeader").append('<button id="syncBtn"\
@@ -321,9 +318,11 @@ $(document).ready(function() {
321318

322319
pyInputCodeMirror.setSize(null, '420px');
323320

321+
var role = $.bbq.getState('role');
322+
isTutor = (role == 'tutor'); // GLOBAL
324323

325-
if (enableTogetherJS) {
326-
initTogetherJS(); // can also call this manually as well
324+
if (enableTogetherJS || isTutor) {
325+
initTogetherJS(); // can also call this manually to test
327326
}
328327

329328

0 commit comments

Comments
 (0)