This commit is contained in:
Philipp Hancke 2013-12-22 19:46:01 +01:00 committed by Yana Stamcheva
parent 77dd378117
commit 8e5dbfdf9b
1 changed files with 1 additions and 0 deletions

1
app.js
View File

@ -411,6 +411,7 @@ function dump(elem, filename){
*/
// <a onclick="dump(event.target);">my download button</a>
function dump(elem, filename){
elem = elem.parentNode;
elem.download = filename || 'xmpplog.json';
elem.href = 'data:application/json;charset=utf-8,\n';
var data = {};