This commit is contained in:
Philipp Hancke 2013-12-22 19:46:01 +01:00 committed by Yana Stamcheva
parent 667551c7a0
commit 27a6ab1ac9
1 changed files with 1 additions and 1 deletions

2
app.js
View File

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