Skip to content

Commit 98869e0

Browse files
committed
minor
1 parent a571a3f commit 98869e0

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,6 @@ function executePythonCode(pythonSourceCode,
11921192
handleSuccessFunc, handleUncaughtExceptionFunc) {
11931193

11941194
function execCallback(dataFromBackend) {
1195-
console.log('dataFromBackend', dataFromBackend);
11961195
var trace = dataFromBackend.trace;
11971196

11981197
// don't enter visualize mode if there are killer errors:
@@ -1285,15 +1284,13 @@ function executePythonCode(pythonSourceCode,
12851284
startExecutingCode();
12861285

12871286
if (backendScript === js_backend_script) {
1288-
// hack for JS execution! this should just be a dummy script that
1289-
// does logging
1290-
1287+
// hack for JS execution! should just be a dummy script for logging only
12911288
$.get(backendScript,
12921289
{user_script : pythonSourceCode,
12931290
user_uuid: supports_html5_storage() ? localStorage.getItem('opt_uuid') : undefined,
12941291
// if we don't have any deltas, then don't bother sending deltaObj:
12951292
diffs_json: deltaObj && (deltaObj.deltas.length > 0) ? JSON.stringify(deltaObj) : null},
1296-
function() {} /* don't do anything since this is a dummy call */, "json");
1293+
function(dat) {} /* don't do anything since this is a dummy call */, "text");
12971294

12981295
// the REAL call uses JSONP
12991296
// some JSONP action!

0 commit comments

Comments
 (0)