Skip to content

Commit

Permalink
fixed extensions for rnc and w3c export formats. Fixes #159
Browse files Browse the repository at this point in the history
  • Loading branch information
raffazizzi committed Nov 26, 2024
1 parent 5881e5e commit 06a3cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reducers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function odd(state = {}, action) {
} catch (e) { e }
postToTEIGarage(state.customization.updatedXml, teigarage[action.format](action.lang))
.then((res) => {
const ext = action.format !== 'rnc' ? action.format : 'zip'
const ext = action.format !== 'w3c' ? action.format : 'zip'
fileSaver.saveAs(new Blob([res], {'type': 'text\/xml'}), `${filename}.${ext}`)
})
return state
Expand Down

0 comments on commit 06a3cd3

Please sign in to comment.