aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/file-utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/file-utils.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/file-utils.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/file-utils.js b/packages/meshbay-hub/src/meshbay_hub/static/file-utils.js
index decf916..bdfba6e 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/file-utils.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/file-utils.js
@@ -1,6 +1,7 @@
import * as downloads from './downloads.js';
import * as platform from './platform.js';
import { t } from './i18n.js';
+import { ask } from './ask.js';
import { ZipStream, entriesUnder } from './zipstream.js';
const FILE_ICONS = {
@@ -556,7 +557,7 @@ async function downloadDirectory(transfers, transport, gek, entries, dir, { setE
accept: { 'application/zip': ['.zip'] } }],
}, 0);
if (target === false) return false;
- if (!target && !confirm(t('group.zip_no_stream', {
+ if (!target && !await ask(t('group.zip_no_stream', {
size: formatSize(totalBytes), name: suggested,
}))) {
return false;