mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
f58cb09d27
commit
c9e1f454fc
3 changed files with 4 additions and 5 deletions
|
|
@ -172,7 +172,6 @@
|
||||||
try {
|
try {
|
||||||
const input = JSON.parse(storageChatInput);
|
const input = JSON.parse(storageChatInput);
|
||||||
|
|
||||||
console.log(input);
|
|
||||||
if (!$temporaryChatEnabled) {
|
if (!$temporaryChatEnabled) {
|
||||||
messageInput?.setText(input.prompt);
|
messageInput?.setText(input.prompt);
|
||||||
files = input.files;
|
files = input.files;
|
||||||
|
|
@ -477,7 +476,6 @@
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const input = JSON.parse(storageChatInput);
|
const input = JSON.parse(storageChatInput);
|
||||||
console.log(input);
|
|
||||||
|
|
||||||
if (!$temporaryChatEnabled) {
|
if (!$temporaryChatEnabled) {
|
||||||
messageInput?.setText(input.prompt);
|
messageInput?.setText(input.prompt);
|
||||||
|
|
|
||||||
|
|
@ -120,8 +120,11 @@
|
||||||
if ($settings?.richTextInput ?? true) {
|
if ($settings?.richTextInput ?? true) {
|
||||||
chatInputElement.setText(text);
|
chatInputElement.setText(text);
|
||||||
} else {
|
} else {
|
||||||
// chatInput.value = text;
|
chatInput.value = text;
|
||||||
prompt = text;
|
prompt = text;
|
||||||
|
|
||||||
|
chatInput.focus();
|
||||||
|
chatInput.dispatchEvent(new Event('input'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -381,8 +381,6 @@
|
||||||
.replace(/\u00a0/g, ' ')
|
.replace(/\u00a0/g, ' ')
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(html);
|
|
||||||
|
|
||||||
if (json) {
|
if (json) {
|
||||||
value = editor.getJSON();
|
value = editor.getJSON();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue