@folklore/ads 0.0.88 → 0.0.89
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/dist/cjs.js +1 -1
- package/dist/es.js +1 -1
- package/package.json +2 -2
package/dist/cjs.js
CHANGED
|
@@ -959,7 +959,7 @@ function useAd(path, size) {
|
|
|
959
959
|
}
|
|
960
960
|
}, [adsManager, adsReady, slot]);
|
|
961
961
|
React.useEffect(() => {
|
|
962
|
-
const slotReady = slot !== null && !slot.
|
|
962
|
+
const slotReady = slot !== null && !slot.isDisplayed();
|
|
963
963
|
if (adsReady && slotReady && (alwaysRender || isVisible)) {
|
|
964
964
|
adsManager.displaySlot(slot);
|
|
965
965
|
track('Init', slot);
|
package/dist/es.js
CHANGED
|
@@ -957,7 +957,7 @@ function useAd(path, size) {
|
|
|
957
957
|
}
|
|
958
958
|
}, [adsManager, adsReady, slot]);
|
|
959
959
|
useEffect(() => {
|
|
960
|
-
const slotReady = slot !== null && !slot.
|
|
960
|
+
const slotReady = slot !== null && !slot.isDisplayed();
|
|
961
961
|
if (adsReady && slotReady && (alwaysRender || isVisible)) {
|
|
962
962
|
adsManager.displaySlot(slot);
|
|
963
963
|
track('Init', slot);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@folklore/ads",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.89",
|
|
4
4
|
"description": "Ads library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "34143443e4db4cac8aba704b788eafe3929e1481",
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@folklore/hooks": "^0.0.71",
|
|
56
56
|
"@folklore/tracking": "^0.0.26",
|