nodebb-plugin-ezoic-infinite 1.5.59 → 1.5.60

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/public/client.js +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.5.59",
3
+ "version": "1.5.60",
4
4
  "description": "Production-ready Ezoic infinite ads integration for NodeBB 4.x",
5
5
  "main": "library.js",
6
6
  "license": "MIT",
package/public/client.js CHANGED
@@ -84,9 +84,8 @@ function acquirePlaceholder(id) {
84
84
  ph.id = domId;
85
85
  ph.setAttribute('data-ezoic-id', String(id));
86
86
  ensurePool().appendChild(ph);
87
- }
88
- // Detach from wherever it currently is (pool or a previous wrap)
89
- try { if (ph.parentNode) ph.parentNode.removeChild(ph); } catch (e) {}
87
+ }
88
+ // Note: appendChild will automatically move the node, no manual detach (avoids race gaps).
90
89
  // Clear request/defined flags when reusing
91
90
  try {
92
91
  if (ph.dataset) {