Update main.js
Browse files
main.js
CHANGED
|
@@ -104,7 +104,7 @@ async function sendPrompt() {
|
|
| 104 |
});
|
| 105 |
|
| 106 |
const data = await response.json();
|
| 107 |
-
|
| 108 |
if (context.trim() === '') {
|
| 109 |
// If context is empty, set the entire editor value
|
| 110 |
editor.setValue(data.response);
|
|
|
|
| 104 |
});
|
| 105 |
|
| 106 |
const data = await response.json();
|
| 107 |
+
// Check if context is empty
|
| 108 |
if (context.trim() === '') {
|
| 109 |
// If context is empty, set the entire editor value
|
| 110 |
editor.setValue(data.response);
|