Skip to content

Commit e26fdf4

Browse files
committed
Fix insertAfter usage
1 parent d476407 commit e26fdf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin/pagebreaks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Worker.prototype.toContainer = function toContainer() {
107107
display: 'block',
108108
height: pxPageHeight - (clientRect.bottom % pxPageHeight) + 'px'
109109
}});
110-
el.parentNode.insertAfter(pad, el);
110+
el.parentNode.insertBefore(pad, el.nextSibling);
111111
}
112112
});
113113
});

0 commit comments

Comments
 (0)