mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Change pfp as user types
This commit is contained in:
@@ -6006,6 +6006,10 @@ function addMessage(author, content, actionId, afterMsgEl=null, time=null) {
|
||||
});
|
||||
}
|
||||
|
||||
messageAuthor.addEventListener("keyup", function() {
|
||||
profilePicture.src = getChatPfp(messageAuthor.innerText);
|
||||
})
|
||||
|
||||
addAfterButton.addEventListener("click", function() {
|
||||
addMessage(null, null, actionId, message);
|
||||
});
|
||||
|
Reference in New Issue
Block a user