Skip to content

Commit 1438cf3

Browse files
committed
again!
1 parent 8460bcb commit 1438cf3

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,9 +1457,6 @@ in some details elaborating on what they just clicked]
14571457
if (res !== null) {
14581458
myArgs.surveyQuestion = buttonPrompt;
14591459
myArgs.surveyResponse = res;
1460-
if (supports_html5_storage()) {
1461-
myArgs.user_uuid = localStorage.getItem('opt_uuid');
1462-
}
14631460
$.get('survey.py', myArgs, function(dat) {});
14641461
}
14651462
});
@@ -1639,6 +1636,10 @@ display a brief "Thanks!" note]
16391636
myArgs.what_learn_Q = surveyObj.what_learn_Q;
16401637
}
16411638

1639+
if (supports_html5_storage()) {
1640+
myArgs.user_uuid = localStorage.getItem('opt_uuid');
1641+
}
1642+
16421643
$.get('survey.py', myArgs, function(dat) {});
16431644
});
16441645

@@ -1659,6 +1660,10 @@ display a brief "Thanks!" note]
16591660

16601661
myArgs.updateHistoryJSON = JSON.stringify(myVisualizer.updateHistory);
16611662

1663+
if (supports_html5_storage()) {
1664+
myArgs.user_uuid = localStorage.getItem('opt_uuid');
1665+
}
1666+
16621667
$.get('survey.py', myArgs, function(dat) {});
16631668

16641669

0 commit comments

Comments
 (0)