diff options
| author | Alon Levy <alon@pobox.com> | 2014-09-28 14:04:23 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-09-28 14:04:23 +0300 |
| commit | ba44a26961a944cdd76df361f727a78be0f43e44 (patch) | |
| tree | fe60e1e62dacab0770d59982695d5a1dbfd95cd0 /scripts | |
| parent | 97fe3c8ea4b4b78728f2e47521a71118669a72d8 (diff) | |
history: save json as text editor viewable
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/history.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/history.js b/scripts/history.js index 03c9f4a1..4e95164a 100644 --- a/scripts/history.js +++ b/scripts/history.js @@ -43,7 +43,7 @@ History.prototype.save_to_file = function() { // TODO: filename and chrome support (grep json;base64 for other locations) // perhaps has to wait for FileWriter api? - location.href = 'data:text/json;base64,' + window.btoa(JSON.stringify(this.records)); + location.href = 'data:text/json;base64,' + window.btoa(JSON.stringify(this.records, function (k, v) { return v; }, 2)); }; History.prototype.clear_history = function() |
