This commit is contained in:
Timothy Jaeryang Baek
2025-09-18 21:25:26 -05:00
parent 07c5b25bc8
commit a5d8882bba
3 changed files with 217 additions and 214 deletions
+9 -9
View File
@@ -465,6 +465,15 @@
return;
}
if (event.data.type === 'action:submit') {
console.debug(event.data.text);
if (prompt !== '') {
await tick();
submitPrompt(prompt);
}
}
// Replace with your iframe's origin
if (event.data.type === 'input:prompt') {
console.debug(event.data.text);
@@ -477,15 +486,6 @@
}
}
if (event.data.type === 'action:submit') {
console.debug(event.data.text);
if (prompt !== '') {
await tick();
submitPrompt(prompt);
}
}
if (event.data.type === 'input:prompt:submit') {
console.debug(event.data.text);