@prose-reader/core 1.143.0 → 1.145.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.
@@ -252,7 +252,9 @@
252
252
  const waitForFrameLoad = (stream) => stream.pipe(
253
253
  rxjs.switchMap((frame) => {
254
254
  var _a;
255
- if (((_a = frame.contentDocument) == null ? void 0 : _a.readyState) === "complete") return rxjs.of(frame);
255
+ if (frame.src === "about:blank" && ((_a = frame.contentDocument) == null ? void 0 : _a.readyState) === "complete" && frame.contentDocument.body) {
256
+ return rxjs.of(frame);
257
+ }
256
258
  return rxjs.fromEvent(frame, `load`).pipe(
257
259
  rxjs.take(1),
258
260
  rxjs.map(() => frame)
@@ -5794,7 +5796,7 @@
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;