diff --git a/public/chat/index.html b/public/chat/index.html index 7ba0f73c..373190e3 100644 --- a/public/chat/index.html +++ b/public/chat/index.html @@ -1047,7 +1047,7 @@

Welcome to BioImage.IO Chatbot

` // show mount button workerManager.createWorker().then(async w => { - $('#mount-folder-btn').show(); + if (window.showOpenFilePicker) $('#mount-folder-btn').show(); if (mountedFolder) { await worker.mount("/mnt", mountedFolder); $('#mount-folder-btn').text(`Mount Files (${mountedFolder.name})`); @@ -1178,7 +1178,7 @@

Welcome to BioImage.IO Chatbot

} }); $('.spinner').remove(); - $('#mount-folder-btn').show(); + if (window.showOpenFilePicker) $('#mount-folder-btn').show(); // empty termina first $('#terminal').terminal(async function (command, term) { if (command.trim() === "") {