Skip to content

Commit

Permalink
Fix submit results
Browse files Browse the repository at this point in the history
  • Loading branch information
niutech authored Jan 17, 2024
1 parent b22861b commit 1622b0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ <h3>Help us improve HTML5 test by donating</h3>

new Save(button, {
id: r.uniqueid,
onSave: function() { submit('save', '{"uniqueid": "' + r.uniqueid + '"}'); }
onSave: function() {
submitResults(r, c);
submit('save', '{"uniqueid": "' + r.uniqueid + '"}');
}
});

var button = document.createElement('a');
Expand Down
2 changes: 1 addition & 1 deletion scripts/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function submitResults(r, c) {
'"useragent": "' + navigator.userAgent + '",' +
'"humanReadable": "' + Browsers.toString() + '",' +
'"points": "' + c.points + '",' +
'"results": "#' + escapeSlashes(r.results) + '"' +
'"results": "' + escapeSlashes(r.results) + '"' +
'}';

submit('submit', payload);
Expand Down

0 comments on commit 1622b0b

Please sign in to comment.