summaryrefslogtreecommitdiff
path: root/js/codeq/prolog.js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-10-05 19:21:05 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-10-05 19:21:05 +0200
commit8f35e1e3c2ffc08b17cf76f8cf1d4944c20af440 (patch)
treee8d85aed4766af0502736e2c705fb6b39dff2586 /js/codeq/prolog.js
parentd2150cf0ed43abc8e496e9a95013028325057976 (diff)
Save current program in trace with each 'open' action
So we can resynchronize if something goes wrong.
Diffstat (limited to 'js/codeq/prolog.js')
-rw-r--r--js/codeq/prolog.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/codeq/prolog.js b/js/codeq/prolog.js
index 69523b0..ce1865a 100644
--- a/js/codeq/prolog.js
+++ b/js/codeq/prolog.js
@@ -296,7 +296,11 @@
});
codeq.comms.loadProblem(problemDef.id).done();
- activityHandler.queueTrace({'typ': 'open', 'time': Date.now()});
+ activityHandler.queueTrace({
+ 'typ': 'open',
+ 'time': Date.now(),
+ 'content': editor.getDoc().getValue()
+ });
return {
destroy: function () {