Skip to content

Commit

Permalink
fix bug in chatbot launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanguage committed Dec 25, 2023
1 parent 6819ac0 commit 4df871f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/chatbot-launcher.imjoy.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,14 @@
}

async run(ctx) {
if (!this.chatbot) {
this.chatbot = await api.createWindow({
let chatbot = await api.getWindow("BioImage.IO Chatbot");
if (!chatbot) {
chatbot = await api.createWindow({
src: "https://staging.chat.bioimage.io/public/apps/bioimageio-chatbot-client/index",
name: "BioImage.IO Chatbot",
});
}
this.chatbot = chatbot
await this.registerExtensions()
}
}
Expand Down

0 comments on commit 4df871f

Please sign in to comment.