mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-15 04:21:21 +00:00
Fix wrong previouos merged conflict
This commit is contained in:
parent
0249573890
commit
a7d476bb1c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user