Skip to content

Commit

Permalink
Fix id typo for "cropPdfCanvas" querySelector (#2271)
Browse files Browse the repository at this point in the history
Fix id typo
  • Loading branch information
rafael-encinas authored Nov 20, 2024
1 parent 8eab357 commit e059caa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/static/js/downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,14 @@
if(editSectionElement){
editSectionElement.style.display = "none";
}
let cropPdfCanvas = document.querySelector("#crop-pdf-canvas");
let cropPdfCanvas = document.querySelector("#cropPdfCanvas");
let overlayCanvas = document.querySelector("#overlayCanvas");
if(cropPdfCanvas && overlayCanvas){
cropPdfCanvas.width = 0;
cropPdfCanvas.heigth = 0;
cropPdfCanvas.height = 0;

overlayCanvas.width = 0;
overlayCanvas.heigth = 0;
overlayCanvas.height = 0;
}
} else{
console.log("Disabled for 'Merge'");
Expand Down

0 comments on commit e059caa

Please sign in to comment.