Marthee commited on
Commit
c8303fc
·
verified ·
1 Parent(s): 3aa61c1

Update templates/gui.html

Browse files
Files changed (1) hide show
  1. templates/gui.html +4 -4
templates/gui.html CHANGED
@@ -16,10 +16,10 @@
16
  function getURLParams() {
17
  const urlParams = new URLSearchParams(window.location.search);
18
  return {
19
- pdfLink: decodeURIComponent(urlParams.get('pdf_link') || ''), // Decode special characters
20
- keyword: decodeURIComponent(urlParams.get('keyword') || ''), // Handle spaces properly
21
- pageNumber: parseInt(urlParams.get('page')) || 1,
22
- zoomRect: urlParams.get('zoom') || '' // Expecting format: "x,y,width,height"
23
  };
24
  }
25
 
 
16
  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
  };
24
  }
25