@betarena/ad-engine 0.0.47 → 0.0.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.
package/package.json
CHANGED
|
@@ -321,8 +321,7 @@
|
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
// ╭─────
|
|
324
|
-
// │
|
|
325
|
-
// │ ➤ inject of 'global' placements ads (based on global page data)
|
|
324
|
+
// │ CHECK |:| for injection of 'global' placements ads (based on global page data)
|
|
326
325
|
// ╰─────
|
|
327
326
|
if (authorId || authorArticleTagIds.length > 0)
|
|
328
327
|
{
|
|
@@ -454,6 +453,25 @@
|
|
|
454
453
|
}
|
|
455
454
|
}
|
|
456
455
|
}
|
|
456
|
+
// ╭─────
|
|
457
|
+
// │ CHECK |:| for case where no author or tag ids are present (global ads), but the ads are still fetched
|
|
458
|
+
// ╰─────
|
|
459
|
+
else
|
|
460
|
+
{
|
|
461
|
+
for (const [adId, adData] of creativeDataMap)
|
|
462
|
+
{
|
|
463
|
+
new WidgetAdvertSlide
|
|
464
|
+
(
|
|
465
|
+
{
|
|
466
|
+
target: document.body,
|
|
467
|
+
props:
|
|
468
|
+
{
|
|
469
|
+
adData
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
457
475
|
|
|
458
476
|
return;
|
|
459
477
|
}
|
|
@@ -8,8 +8,6 @@ export const
|
|
|
8
8
|
* "http://192.168.1.236:58749"
|
|
9
9
|
* ➤ dev|:|live|:|staging
|
|
10
10
|
* "https://betarena-test-e2748dab12f5.herokuapp.com"
|
|
11
|
-
* ➤ prod|:|live
|
|
12
|
-
* "http://49.13.201.19:8500" | "https://ads.betarena.com/"
|
|
13
11
|
*/
|
|
14
|
-
betarenaEndpoint = 'https://
|
|
12
|
+
betarenaEndpoint = 'https://betarena-test-e2748dab12f5.herokuapp.com'
|
|
15
13
|
;
|