Skip to content

Commit

Permalink
Only show mount folder in chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed May 20, 2024
1 parent 72d8d67 commit 1f0f27a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/chat/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ <h3 class="text-center">Welcome to BioImage.IO Chatbot</h3>
`
// 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})`);
Expand Down Expand Up @@ -1178,7 +1178,7 @@ <h3 class="text-center">Welcome to BioImage.IO Chatbot</h3>
}
});
$('.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() === "") {
Expand Down

0 comments on commit 1f0f27a

Please sign in to comment.