From d49622dd2713a2dbabbb395821583a485b401f35 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 15 Mar 2017 03:54:51 +0300 Subject: [PATCH] Make exported styles JSON human-readable by indenting --- backup/fileSaveLoad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/fileSaveLoad.js b/backup/fileSaveLoad.js index 8d5415a3..cf337ac1 100644 --- a/backup/fileSaveLoad.js +++ b/backup/fileSaveLoad.js @@ -55,7 +55,7 @@ function generateFileName() { document.getElementById('file-all-styles').addEventListener('click', function () { getStyles({}, function (styles) { - let text = JSON.stringify(styles); + let text = JSON.stringify(styles, null, '\t'); let fileName = generateFileName() || STYLISH_DEFAULT_SAVE_NAME; let url = 'data:text/plain;charset=utf-8,' + encodeURIComponent(text);