Spaces:
Runtime error
Runtime error
Update templates/gui.html
Browse files- templates/gui.html +1 -1
templates/gui.html
CHANGED
|
@@ -17,7 +17,7 @@ function getURLParams() {
|
|
| 17 |
const urlParams = new URLSearchParams(window.location.search);
|
| 18 |
return {
|
| 19 |
pdfLink: urlParams.get('pdf_link'),
|
| 20 |
-
|
| 21 |
// pageNumber: parseInt(urlParams.get('page')) || 1,
|
| 22 |
// zoomRect: urlParams.get('zoom') || '' // Expecting format: "x,y,width,height"
|
| 23 |
};
|
|
|
|
| 17 |
const urlParams = new URLSearchParams(window.location.search);
|
| 18 |
return {
|
| 19 |
pdfLink: urlParams.get('pdf_link'),
|
| 20 |
+
keyword: decodeURIComponent(urlParams.get('keyword') || '')
|
| 21 |
// pageNumber: parseInt(urlParams.get('page')) || 1,
|
| 22 |
// zoomRect: urlParams.get('zoom') || '' // Expecting format: "x,y,width,height"
|
| 23 |
};
|