Marthee commited on
Commit
06369f2
·
verified ·
1 Parent(s): 15099f2

Update templates/gui.html

Browse files
Files changed (1) hide show
  1. templates/gui.html +7 -7
templates/gui.html CHANGED
@@ -17,19 +17,19 @@ function getURLParams() {
17
  // Get URL parameters
18
  const params = new URLSearchParams(window.location.search);
19
  const pdfLink = params.get("pdfLink");
20
-
 
21
  if (pdfLink) {
22
- const pdfLink = decodeURIComponent(pdfLink);
23
- console.log("Decoded Dropbox Link:", pdfLink);
24
  }
 
25
  return {
26
- pdfLink: urlParams.get('pdfLink')
27
- // keyword: decodeURIComponent(urlParams.get('keyword') || '')
28
- // pageNumber: parseInt(urlParams.get('page')) || 1,
29
- // zoomRect: urlParams.get('zoom') || '' // Expecting format: "x,y,width,height"
30
  };
31
  }
32
 
 
33
  function processPdf() {
34
  const pdfLink = getURLParams();
35
 
 
17
  // Get URL parameters
18
  const params = new URLSearchParams(window.location.search);
19
  const pdfLink = params.get("pdfLink");
20
+
21
+ let decodedLink = null;
22
  if (pdfLink) {
23
+ decodedLink = decodeURIComponent(pdfLink);
24
+ console.log("Decoded Dropbox Link:", decodedLink);
25
  }
26
+
27
  return {
28
+ pdfLink: decodedLink
 
 
 
29
  };
30
  }
31
 
32
+
33
  function processPdf() {
34
  const pdfLink = getURLParams();
35