diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2022-07-18 19:31:55 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2022-07-18 19:31:55 +0000 |
| commit | 10403f79dd3a4aff54d11de40f2d55aa44774ce0 (patch) | |
| tree | edc1908d121afc5a90fe27aa485cb43b3b1a53e4 /src | |
| parent | e5a32eeef7b88442dcffb62520fc27f929970479 (diff) | |
| parent | 2474f155d2ce2b072bef37790f2dc4049b22d49a (diff) | |
Merge branch 'develop' into 'migrate/ruffle'
# Conflicts:
# package.json
Diffstat (limited to 'src')
| -rw-r--r-- | src/services/export_import/export_import.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/services/export_import/export_import.js b/src/services/export_import/export_import.js index ac67cf9c..7fee0ad3 100644 --- a/src/services/export_import/export_import.js +++ b/src/services/export_import/export_import.js @@ -1,9 +1,11 @@ +import utf8 from 'utf8' + export const newExporter = ({ filename = 'data', getExportedObject }) => ({ exportData () { - const stringified = JSON.stringify(getExportedObject(), null, 2) // Pretty-print and indent with 2 spaces + const stringified = utf8.encode(JSON.stringify(getExportedObject(), null, 2)) // Pretty-print and indent with 2 spaces // Create an invisible link with a data url and simulate a click const e = document.createElement('a') |
