fix(paginator): tolerate not-yet-loaded section documents in early resize renders

The ResizeObserver can fire while the iframe document is still unset:
setImageSize dereferenced doc.body unconditionally and
setStylesImportant destructure-crashed on null, killing the render
loop — the view then never snapped or relocated again (observed in an
embedded Android WebView where the first observation lands pre-load).
Guard both paths.
This commit is contained in:
John O'Keefe committed 2026-10-02 15:17:00 -04:00
1 parent 8e1d5fc8d6
commit 50f56ee67f
2 files changed
+5 -1

No files matched your search

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