Skip to content

Commit 0c546a7

Browse files
committed
bah
1 parent 8dd02c0 commit 0c546a7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎v3/js/opt-frontend.js‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,15 @@ function experimentalPopUpSyntaxErrorSurvey() {
221221
return; // get out early!
222222
}
223223

224+
// if we've switched languages between the previous error and this
225+
// run, then DON'T pop up a survey since the point is moot anyhow;
226+
// there's no point in asking the question when the language has
227+
// changed :)
228+
var curState = getAppState();
229+
if (prevExecutionExceptionObj.myAppState.py != curState.py) {
230+
return;
231+
}
232+
224233
// make sure jquery.qtip has been imported
225234

226235
var codelineIDs = [];

0 commit comments

Comments
 (0)