From a7d476bb1c8cf606a245d616cd7cf7d060b1ddc1 Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Thu, 12 Jun 2025 22:57:48 +0200 Subject: [PATCH] Fix wrong previouos merged conflict --- src/qortal/get.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/qortal/get.ts b/src/qortal/get.ts index 93bcb63..80acbb2 100644 --- a/src/qortal/get.ts +++ b/src/qortal/get.ts @@ -2463,7 +2463,6 @@ export const saveFile = async (data, sender, isFromExtension, snackMethods) => { const filename = data.filename; const blob = data.blob; - const mimeType = blob.type || data.mimeType; const resPermission = await getUserPermission( { text1: i18n.t('question:download_file', { @@ -2474,17 +2473,6 @@ export const saveFile = async (data, sender, isFromExtension, snackMethods) => { isFromExtension ); const { accepted } = resPermission; - if (!accepted) throw new Error('User declined to save file'); // TODO translate - showSaveFilePicker( - { - filename, - mimeType, - blob, - }, - snackMethods - ); - - return true; if (accepted) { const mimeType = blob.type || data.mimeType;