nodebb-plugin-ezoic-infinite 1.7.48 → 1.7.49

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 +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.7.48",
3
+ "version": "1.7.49",
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
@@ -526,6 +526,9 @@
526
526
  const wrap = ph?.closest?.(`.${WRAP_CLASS}`);
527
527
  if (!wrap || !ph?.isConnected) return;
528
528
  if (parseInt(wrap.getAttribute(A_SHOWN) || '0', 10) > showTs) return;
529
+ // is-empty désactivé pour ezoic-ad-between : Ezoic peut prendre >20s
530
+ // à charger sur liste de catégorie — collapse prématuré des wraps.
531
+ if (wrap.classList.contains('ezoic-ad-between')) return;
529
532
  wrap.classList.toggle('is-empty', !isFilled(ph));
530
533
  } catch (_) {}
531
534
  }, EMPTY_CHECK_MS);