annotate content patch
This commit is contained in:
parent
4936c76770
commit
6f7c0f17c5
9 changed files with 21 additions and 9 deletions
|
|
@ -3,6 +3,7 @@ const { app } = require("electron");
|
|||
const DOMAIN = "crimata.com";
|
||||
|
||||
const prod = !process.defaultApp;
|
||||
// const prod = true;
|
||||
|
||||
module.exports = {
|
||||
PLATFORM: prod ? `https://app.${DOMAIN}` : `http://localhost:8760`,
|
||||
|
|
|
|||
|
|
@ -45,6 +45,13 @@ const Messenger = {
|
|||
{
|
||||
search(update.message).context = update.context;
|
||||
}
|
||||
else if (update.text)
|
||||
{
|
||||
search(update.message).content.at(-1).text = update.text;
|
||||
setTimeout(() => {
|
||||
document.getElementById("messenger").dispatchEvent(new CustomEvent('adjust-scroll'))
|
||||
}, 100);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -53,6 +53,10 @@ function handleMessageQueue()
|
|||
{
|
||||
search(update.message).context = update.context;
|
||||
}
|
||||
else if (update.text) /* Update the text of last message */
|
||||
{
|
||||
search(update.message).content.at(-1).text = update.text;
|
||||
}
|
||||
|
||||
ipcEmit("message", update);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue