fix(paginator): bail from expand() when the iframe document is torn down

A queued resize tick can run against a not-yet-parsed or unloaded
iframe; documentElement is null then and expand() threw inside the
ResizeObserver callback. Observed live in the Android app (twice in
row during boot and page turns). Follows the 50f56ee guard family.
This commit is contained in:
John O'Keefe committed 2026-10-03 22:30:03 -04:00
1 parent ac699e71ee
commit 111898ee0e
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "foliate-js",
"version": "0.5.0",
"version": "0.5.1",
"description": "Render e-books in the browser",
"repository": {
"type": "git",