Download system report for FF

This commit is contained in:
Mike Jolley 2013-03-25 13:57:56 +00:00
parent c9b6b4a302
commit 76c7aed302
1 changed files with 4 additions and 3 deletions

View File

@ -460,7 +460,7 @@ function woocommerce_status_report() {
jQuery('a.debug-report').click(function(){
var report = "data:text/plain;charset=utf-8,";
var report = "";
jQuery('.wc_status_table thead, .wc_status_table tbody').each(function(){
@ -483,10 +483,11 @@ function woocommerce_status_report() {
});
}
} );
jQuery(this).attr( 'href', encodeURI( report ) );
var blob = new Blob( [report] );
jQuery(this).attr( 'href', window.URL.createObjectURL( blob ) );
return true;
});