Fix id typo for "cropPdfCanvas" querySelector (#2271)

Fix id typo
This commit is contained in:
Rafael Encinas 2024-11-20 00:53:14 -07:00 committed by GitHub
parent 8eab35761d
commit e059caa14e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -308,14 +308,14 @@
if(editSectionElement){ if(editSectionElement){
editSectionElement.style.display = "none"; editSectionElement.style.display = "none";
} }
let cropPdfCanvas = document.querySelector("#crop-pdf-canvas"); let cropPdfCanvas = document.querySelector("#cropPdfCanvas");
let overlayCanvas = document.querySelector("#overlayCanvas"); let overlayCanvas = document.querySelector("#overlayCanvas");
if(cropPdfCanvas && overlayCanvas){ if(cropPdfCanvas && overlayCanvas){
cropPdfCanvas.width = 0; cropPdfCanvas.width = 0;
cropPdfCanvas.heigth = 0; cropPdfCanvas.height = 0;
overlayCanvas.width = 0; overlayCanvas.width = 0;
overlayCanvas.heigth = 0; overlayCanvas.height = 0;
} }
} else{ } else{
console.log("Disabled for 'Merge'"); console.log("Disabled for 'Merge'");