web-remarq 0.7.0 → 0.7.2

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
@@ -3030,6 +3030,10 @@ var WebRemarq = {
3030
3030
  init(opts) {
3031
3031
  var _a3, _b;
3032
3032
  if (initialized) return;
3033
+ if (!document.body) {
3034
+ document.addEventListener("DOMContentLoaded", () => WebRemarq.init(opts), { once: true });
3035
+ return;
3036
+ }
3033
3037
  options = opts != null ? opts : {};
3034
3038
  try {
3035
3039
  injectStyles();