Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,7 @@ set_window_url_params = """
|
|
19 |
params.set("text_input", text_input)
|
20 |
url_params = Object.fromEntries(params);
|
21 |
const queryString = '?' + params.toString();
|
|
|
22 |
window.parent.postMessage({ queryString: queryString }, "*")
|
23 |
return [text_input, url_params];
|
24 |
}
|
|
|
19 |
params.set("text_input", text_input)
|
20 |
url_params = Object.fromEntries(params);
|
21 |
const queryString = '?' + params.toString();
|
22 |
+
// this next line is only needed inside Spaces, so the child frame updates parent
|
23 |
window.parent.postMessage({ queryString: queryString }, "*")
|
24 |
return [text_input, url_params];
|
25 |
}
|