@prose-reader/core 1.143.0 → 1.144.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -252,7 +252,9 @@ const getFrameViewportInfo = (frame) => {
252
252
  const waitForFrameLoad = (stream) => stream.pipe(
253
253
  switchMap$1((frame) => {
254
254
  var _a;
255
- if (((_a = frame.contentDocument) == null ? void 0 : _a.readyState) === "complete") return of(frame);
255
+ if (frame.src === "about:blank" && ((_a = frame.contentDocument) == null ? void 0 : _a.readyState) === "complete" && frame.contentDocument.body) {
256
+ return of(frame);
257
+ }
256
258
  return fromEvent(frame, `load`).pipe(
257
259
  take(1),
258
260
  map$1(() => frame)
@@ -5794,7 +5796,7 @@ class SpineItem extends DestroyableClass {
5794
5796
  const createContainerElement = (containerElement, item, hookManager) => {
5795
5797
  const element = containerElement.ownerDocument.createElement(`div`);
5796
5798
  element.classList.add(`spineItem`);
5797
- element.classList.add(`spineItem-${item.renditionLayout}`);
5799
+ element.classList.add(`spineItem-${item.renditionLayout ?? "reflowable"}`);
5798
5800
  element.style.cssText = `
5799
5801
  position: absolute;
5800
5802
  overflow: hidden;