Spaces:
Running
Running
Update public/script.js
Browse files- public/script.js +1 -1
public/script.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
if (node instanceof HTMLElement) {
|
| 8 |
const input = node.querySelector('#chat-input');
|
| 9 |
if (input) {
|
| 10 |
-
Object.getOwnPropertyDescriptor(Object.getPrototypeOf(input), 'value').set.call(
|
| 11 |
input.dispatchEvent(new Event('input', {bubbles: true}));
|
| 12 |
obs.disconnect();
|
| 13 |
return;
|
|
|
|
| 7 |
if (node instanceof HTMLElement) {
|
| 8 |
const input = node.querySelector('#chat-input');
|
| 9 |
if (input) {
|
| 10 |
+
Object.getOwnPropertyDescriptor(Object.getPrototypeOf(input), 'value').set.call(input, params.get('q'));
|
| 11 |
input.dispatchEvent(new Event('input', {bubbles: true}));
|
| 12 |
obs.disconnect();
|
| 13 |
return;
|