@prose-reader/core 1.88.0 → 1.90.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.
@@ -7235,7 +7235,7 @@
7235
7235
  var _a;
7236
7236
  const containerElement = (_a = elementSubject$.getValue()) == null ? void 0 : _a.parentElement;
7237
7237
  const element = elementSubject$.getValue();
7238
- if (!element || !containerElement) throw new Error("Invalid element");
7238
+ if (!element || !containerElement) return;
7239
7239
  const dimensions = {
7240
7240
  width: containerElement == null ? void 0 : containerElement.offsetWidth,
7241
7241
  height: containerElement == null ? void 0 : containerElement.offsetHeight