mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2024-12-21 19:08:24 +01:00
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:
parent
142e11a59a
commit
82c4e9cf41
@ -179,7 +179,9 @@ class PdfContainer {
|
||||
|
||||
rotateAll(deg) {
|
||||
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;
|
||||
this.rotateElement(img, deg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user