From 06a3cd3db5f28823ab929d620f5697503dcea541 Mon Sep 17 00:00:00 2001 From: Raff Viglianti Date: Tue, 26 Nov 2024 09:26:51 -0500 Subject: [PATCH] fixed extensions for rnc and w3c export formats. Fixes #159 --- src/reducers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reducers/index.js b/src/reducers/index.js index b0ead24..587cf01 100644 --- a/src/reducers/index.js +++ b/src/reducers/index.js @@ -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