This commit is contained in:
parent
667551c7a0
commit
27a6ab1ac9
2
app.js
2
app.js
|
@ -361,8 +361,8 @@ $(window).bind('unload', function () {
|
|||
}
|
||||
});
|
||||
|
||||
// <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 = {};
|
||||
|
|
Loading…
Reference in New Issue