From 80bcc68ce576a6a7ee5f221cd7e994e311fd77c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 4 Jun 2024 15:40:05 +0200 Subject: [PATCH] WIP temporarily force extension to xlsx --- .../Resources/public/lib/download-report/download-report.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/lib/download-report/download-report.js b/src/Bundle/ChillMainBundle/Resources/public/lib/download-report/download-report.js index 041e94c45..8b3429f28 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/lib/download-report/download-report.js +++ b/src/Bundle/ChillMainBundle/Resources/public/lib/download-report/download-report.js @@ -15,7 +15,7 @@ * along with this program. If not, see . */ -var mime = require('mime') +var mime = require('mime'); var download_report = (url, container) => { var download_text = container.dataset.downloadText, @@ -43,7 +43,7 @@ var download_report = (url, container) => { content = URL.createObjectURL(blob); } - extension = mime.getExtension(type); + extension = 'xlsx';//mime.extension(type); link.appendChild(document.createTextNode(download_text)); link.classList.add("btn", "btn-action");