Skip to content

Commit

Permalink
Update mask_downloader.js
Browse files Browse the repository at this point in the history
changing type from 'application/json' to 'text/json' to avoid download issues
  • Loading branch information
robbizbal committed Nov 26, 2024
1 parent bd103fb commit eb6e9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/static/scripts/mask_downloader.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
document.getElementById('downloadBtn').addEventListener('click', function() {

const contents = [
{ content: document.getElementById('responseFieldEntities').value, name: 'yoyo-entities.json', type: 'application/json' },
{ content: document.getElementById('responseFieldEntities').value, name: 'yoyo-entities.json', type: 'text/json' }, // changing type from 'application/json' to 'text/json' to avoid download issues
{ content: document.getElementById('responseFieldAnonText').value, name: 'yoyo-anonymizedText.txt', type: 'text/plain' },
];

Expand Down

0 comments on commit eb6e9d0

Please sign in to comment.