Skip to content

Commit 94cb827

Browse files
committed
bam
1 parent 03c8702 commit 94cb827

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ var prevExecutionExceptionObjLst = [];
127127
// OPTIONAL for Codeopticon - not all frontends use these:
128128
var codeopticonSocketIO = undefined; // socket.io instance
129129
var codeopticonSession = undefined;
130+
//var codeopticonSession = 'CODEOPTICON_TESTING'; // to turn all monitoring on
130131

131132
// From http://stackoverflow.com/a/8809472
132133
function generateUUID(){

‎v3/js/opt-frontend.js‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -638,15 +638,17 @@ function initCodeopticon() {
638638
return;
639639
}
640640

641-
// hide header elements
642-
$("#ssDiv,#surveyHeader,#sharedSessionDisplayDiv").hide();
643-
$("#togetherjsStatus").css("font-size", "8pt");
644-
$("#togetherjsStatus").html("Codeopticon session " + codeopticonSession);
641+
// hide header elements only if we're not doing CODEOPTICON_TESTING
642+
if (codeopticonSession !== 'CODEOPTICON_TESTING') {
643+
$("#ssDiv,#surveyHeader,#sharedSessionDisplayDiv").hide();
644+
$("#togetherjsStatus").css("font-size", "8pt");
645+
$("#togetherjsStatus").html("Codeopticon session " + codeopticonSession);
646+
}
645647

646648
// connect on-demand in logEventCodeopticon(), not here
647-
//codeopticonSocketIO = io('http://104.237.139.253:5000/userlog'); // PRODUCTION_PORT
649+
codeopticonSocketIO = io('http://104.237.139.253:5000/userlog'); // PRODUCTION_PORT
648650
//codeopticonSocketIO = io('http://104.237.139.253:5001/userlog'); // DEBUG_PORT
649-
codeopticonSocketIO = io('http://localhost:5000/userlog'); // localhost debugging
651+
//codeopticonSocketIO = io('http://localhost:5000/userlog'); // localhost debugging
650652

651653
if (codeopticonSocketIO) {
652654
codeopticonSocketIO.on('connect', function() {

0 commit comments

Comments
 (0)