Skip to content

Commit

Permalink
feat: export formatted json for versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
fidelthomet committed Oct 7, 2024
1 parent d634900 commit 0013fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const useDataStore = defineStore('data', () => {
}

function exportProject() {
const project = localStorage.getItem(`wanderer:data`)
const project = JSON.stringify(JSON.parse(localStorage.getItem(`wanderer:data`)), null, 2)
const blob = new Blob([project], { type: 'application/json' })
const link = document.createElement('a')
link.download = `db.json`
Expand Down

0 comments on commit 0013fa3

Please sign in to comment.