| Index: chrome/browser/resources/snippets_internals.js
|
| diff --git a/chrome/browser/resources/snippets_internals.js b/chrome/browser/resources/snippets_internals.js
|
| index 7f623668eb0b2cd8daef77891220b21b78e9818e..6e8bbe94c783090b99d1e4769fb21b160c5d36c9 100644
|
| --- a/chrome/browser/resources/snippets_internals.js
|
| +++ b/chrome/browser/resources/snippets_internals.js
|
| @@ -15,7 +15,7 @@ cr.define('chrome.SnippetsInternals', function() {
|
| });
|
|
|
| $('submit-dump').addEventListener('click', function(event) {
|
| - downloadJson(JSON.stringify(lastSuggestions));
|
| + downloadJson(JSON.stringify(lastSuggestions, null, 2));
|
| event.preventDefault();
|
| });
|
|
|
| @@ -125,7 +125,7 @@ cr.define('chrome.SnippetsInternals', function() {
|
| // create a link with download attribute and simulate a click, instead.)
|
| var link = document.createElement('a');
|
| link.download = 'snippets.json';
|
| - link.href = 'data:,' + json;
|
| + link.href = 'data:application/json,' + encodeURI(json);
|
| link.click();
|
| }
|
|
|
|
|