From 76c7aed3021ae5cec0a6f17d509e4fd967a756a3 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 25 Mar 2013 13:57:56 +0000 Subject: [PATCH] Download system report for FF --- admin/woocommerce-admin-status.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/woocommerce-admin-status.php b/admin/woocommerce-admin-status.php index 4a775e4b586..21ee00e319b 100644 --- a/admin/woocommerce-admin-status.php +++ b/admin/woocommerce-admin-status.php @@ -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; });