nodebb-plugin-ezoic-infinite 0.9.9 → 0.9.10

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 +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "0.9.9",
3
+ "version": "0.9.10",
4
4
  "description": "Ezoic ads with infinite scroll using a pool of placeholder IDs",
5
5
  "main": "library.js",
6
6
  "license": "MIT",
package/public/client.js CHANGED
@@ -125,8 +125,6 @@ function injectBetweenIncremental($items, pool, interval, wrapperClass) {
125
125
  const maxSlot = Math.floor(total / interval);
126
126
  if (maxSlot <= 0) return [];
127
127
 
128
- const newIds = [];
129
-
130
128
  for (let slot = 1; slot <= maxSlot; slot++) {
131
129
  if (injectedSlots.has(slot)) continue;
132
130
 
@@ -158,8 +156,6 @@ function injectMessageIncremental($posts, pool, interval) {
158
156
  const maxSlot = Math.floor(total / interval);
159
157
  if (maxSlot <= 0) return [];
160
158
 
161
- const newIds = [];
162
-
163
159
  for (let slot = 1; slot <= maxSlot; slot++) {
164
160
  if (injectedSlots.has(slot)) continue;
165
161