nodebb-plugin-ezoic-infinite 1.5.44 → 1.5.46
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/package.json +1 -1
- package/public/client.js +3 -4
package/package.json
CHANGED
package/public/client.js
CHANGED
|
@@ -266,8 +266,7 @@ function mutationHasRelevantAddedNodes(mutations) {
|
|
|
266
266
|
const orig = ez.showAds;
|
|
267
267
|
|
|
268
268
|
ez.showAds = function (...args) {
|
|
269
|
-
if (isBlocked()) return;
|
|
270
|
-
if (seq !== state.navSeq) return;
|
|
269
|
+
if (isBlocked()) { try { clearTimeout(hardTimer); } catch (e) {} release(); return; }
|
|
271
270
|
|
|
272
271
|
let ids = [];
|
|
273
272
|
if (args.length === 1 && Array.isArray(args[0])) ids = args[0];
|
|
@@ -789,11 +788,11 @@ function startShow(id) {
|
|
|
789
788
|
|
|
790
789
|
const domId = `${PLACEHOLDER_PREFIX}${id}`;
|
|
791
790
|
const ph = document.getElementById(domId);
|
|
792
|
-
if (!ph || !ph.isConnected) return;
|
|
791
|
+
if (!ph || !ph.isConnected) { try { clearTimeout(hardTimer); } catch (e) {} release(); return; }
|
|
793
792
|
|
|
794
793
|
const now2 = Date.now();
|
|
795
794
|
const last2 = state.lastShowById.get(id) || 0;
|
|
796
|
-
if (now2 - last2 < 900) return;
|
|
795
|
+
if (now2 - last2 < 900) { try { clearTimeout(hardTimer); } catch (e) {} release(); return; }
|
|
797
796
|
state.lastShowById.set(id, now2);
|
|
798
797
|
|
|
799
798
|
window.ezstandalone = window.ezstandalone || {};
|