Merge pull request #137 from JustinWesleyFerrari/justin/q-apps

Justin/q apps
This commit is contained in:
CalDescent 2023-03-03 14:46:47 +00:00 committed by GitHub
commit 00d0567d28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -648,14 +648,13 @@ class WebBrowser extends LitElement {
};
const getSendChatResponse = (res) => {
if (res === true) {
if (res.signature) {
return res
} else if (res.error) {
throw new Error(res.message);
} else {
throw new Error('ERROR: Could not send message');
}
};
const chatResponse = await sendMessageRequest();