mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2024-12-31 00:08:08 +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) {
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user