From eb6e9d0dc5c1377ec68d523deccb0f5bee0892ef Mon Sep 17 00:00:00 2001 From: robbizbal Date: Tue, 26 Nov 2024 19:32:04 +0100 Subject: [PATCH] Update mask_downloader.js changing type from 'application/json' to 'text/json' to avoid download issues --- src/static/scripts/mask_downloader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/scripts/mask_downloader.js b/src/static/scripts/mask_downloader.js index d68d444..fb5fe02 100644 --- a/src/static/scripts/mask_downloader.js +++ b/src/static/scripts/mask_downloader.js @@ -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' }, ];