We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e7793b commit 8973c27Copy full SHA for 8973c27
client/scripts/main.js
@@ -26,7 +26,7 @@ var PD = window.PD = {
26
// }
27
if (!storage.getItem('student-id')) {
28
var id = prompt(PD.constant.student_id_prompt_message)
29
- storage.setItem('student-id', id);
+ if(id!==null) storage.setItem('student-id', id);
30
}
31
if (!storage.getItem('user-ip')) {
32
PD.getIP(function (ip) {
0 commit comments