Fix TypeError by rotation (#890)
Fixes the error in the PDF multitool when rotating all pages at the same time.
This commit is contained in:
@@ -179,7 +179,9 @@ class PdfContainer {
|
|||||||
|
|
||||||
rotateAll(deg) {
|
rotateAll(deg) {
|
||||||
for (var i = 0; i < this.pagesContainer.childNodes.length; i++) {
|
for (var i = 0; i < this.pagesContainer.childNodes.length; i++) {
|
||||||
const img = this.pagesContainer.childNodes[i].querySelector("img");
|
const child = this.pagesContainer.children[i];
|
||||||
|
if (!child) continue;
|
||||||
|
const img = child.querySelector("img");
|
||||||
if (!img) continue;
|
if (!img) continue;
|
||||||
this.rotateElement(img, deg);
|
this.rotateElement(img, deg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user