Marthee commited on
Commit
7bc9842
·
verified ·
1 Parent(s): c8303fc

Update templates/gui.html

Browse files
Files changed (1) hide show
  1. 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
- keyword: urlParams.get('keyword')
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
  };