nodebb-plugin-ezoic-infinite 1.7.59 → 1.7.61

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 +9 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.7.59",
3
+ "version": "1.7.61",
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
@@ -403,8 +403,15 @@
403
403
  window.ezstandalone = window.ezstandalone || {};
404
404
  const ez = window.ezstandalone;
405
405
  const doShow = () => {
406
- try { ez.showAds(id); } catch (_) {}
407
- setTimeout(() => { clearTimeout(timer); release(); }, 700);
406
+ // define + displayMore remettent le slot en état actif si Ezoic l'a oublié
407
+ try { ez.define([id]); } catch (_) {}
408
+ setTimeout(() => {
409
+ try { ez.displayMore([id]); } catch (_) {}
410
+ setTimeout(() => {
411
+ try { ez.showAds(id); } catch (_) {}
412
+ setTimeout(() => { clearTimeout(timer); release(); }, 700);
413
+ }, 200);
414
+ }, 200);
408
415
  };
409
416
  Array.isArray(ez.cmd) ? ez.cmd.push(doShow) : doShow();
410
417
  } catch (_) { clearTimeout(timer); release(); }