Skip to content

Commit ee191fb

Browse files
committed
Update remctl.js from upstream.
1 parent 2db9e1e commit ee191fb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

assets/webathena/remctl.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"use strict";
22

3-
var WEBATHENA_HOST = "https://webathena.mit.edu";
4-
53
// Socket proxy errors.
64
var ERR_BAD_FORMAT = 4000;
75
var ERR_BAD_PARAMS = 4001;
@@ -122,11 +120,11 @@ function RemctlSocket(proxy, host, port) {
122120
}
123121
}
124122
} else {
125-
console.log('Unexpected message', msg);
123+
if (window.console && console.log)
124+
console.log('Unexpected message', msg);
126125
}
127126
}.bind(this));
128127
this.socket.addEventListener('close', function(ev) {
129-
console.log(this);
130128
if (ev.code === 1000) {
131129
this.disconnect();
132130
} else {

0 commit comments

Comments
 (0)