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/README.md +1 -1
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/{web-remarq.global.global.js → web-remarq.global.js} +9 -25
- package/dist/web-remarq.global.js.map +1 -0
- package/package.json +3 -1
- package/dist/web-remarq.global.global.js.map +0 -1
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();
|