You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 7, 2023. It is now read-only.
// error while parsing; likely due to bad value stored in storage
52
+
console.log(err.message);
53
+
localStorage.removeItem(this.localStorageKey());
54
+
return;
55
+
}
56
+
}
57
+
}
58
+
59
+
setLocalStorage(data){
60
+
vartimeStamp=newDate();
61
+
varstorageObj={
62
+
answer: data.answer,
63
+
timestamp: timeStamp,
64
+
correct: data.correct,
65
+
};
66
+
localStorage.setItem(
67
+
this.localStorageKey(),
68
+
JSON.stringify(storageObj)
69
+
);
70
+
}
71
+
72
+
asynclogCurrentAnswer(sid){
73
+
// todo
74
+
}
75
+
76
+
checkCurrentAnswer(){
77
+
78
+
}
79
+
7
80
}
8
81
9
-
letrb=newWebWork();
82
+
// TODO - it would be better if we can get rid of this, and use the runestone object corresponding to the webwork question to make the logging calls. Or this could be a tiny wrapper because we can look up the object using inputs_ref.problemUUID.replace("-ww-rs","")
0 commit comments