@folklore/ads 0.0.90 → 0.0.91
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 +5 -5
- package/dist/es.js +5 -5
- package/package.json +2 -2
package/dist/cjs.js
CHANGED
|
@@ -522,9 +522,6 @@ class AdsManager extends EventEmitter {
|
|
|
522
522
|
return true;
|
|
523
523
|
}
|
|
524
524
|
displaySlot(slot) {
|
|
525
|
-
if (!slot.canBeDisplayed()) {
|
|
526
|
-
return;
|
|
527
|
-
}
|
|
528
525
|
this.callDisplaySlot(slot);
|
|
529
526
|
}
|
|
530
527
|
|
|
@@ -534,12 +531,15 @@ class AdsManager extends EventEmitter {
|
|
|
534
531
|
googletag
|
|
535
532
|
} = this;
|
|
536
533
|
googletag.cmd.push(() => {
|
|
534
|
+
if (!slot.canBeDisplayed()) {
|
|
535
|
+
return;
|
|
536
|
+
}
|
|
537
537
|
const id = slot.getElementId();
|
|
538
538
|
const path = slot.getAdPath();
|
|
539
539
|
debug$1('Displaying slot #%s(%s)...', id, path);
|
|
540
|
-
googletag.display(
|
|
540
|
+
googletag.display(id);
|
|
541
541
|
if (googletag.pubads().isInitialLoadDisabled()) {
|
|
542
|
-
googletag.pubads().refresh([
|
|
542
|
+
googletag.pubads().refresh([id]);
|
|
543
543
|
}
|
|
544
544
|
slot.setDisplayed(true);
|
|
545
545
|
});
|
package/dist/es.js
CHANGED
|
@@ -520,9 +520,6 @@ class AdsManager extends EventEmitter {
|
|
|
520
520
|
return true;
|
|
521
521
|
}
|
|
522
522
|
displaySlot(slot) {
|
|
523
|
-
if (!slot.canBeDisplayed()) {
|
|
524
|
-
return;
|
|
525
|
-
}
|
|
526
523
|
this.callDisplaySlot(slot);
|
|
527
524
|
}
|
|
528
525
|
|
|
@@ -532,12 +529,15 @@ class AdsManager extends EventEmitter {
|
|
|
532
529
|
googletag
|
|
533
530
|
} = this;
|
|
534
531
|
googletag.cmd.push(() => {
|
|
532
|
+
if (!slot.canBeDisplayed()) {
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
535
|
const id = slot.getElementId();
|
|
536
536
|
const path = slot.getAdPath();
|
|
537
537
|
debug$1('Displaying slot #%s(%s)...', id, path);
|
|
538
|
-
googletag.display(
|
|
538
|
+
googletag.display(id);
|
|
539
539
|
if (googletag.pubads().isInitialLoadDisabled()) {
|
|
540
|
-
googletag.pubads().refresh([
|
|
540
|
+
googletag.pubads().refresh([id]);
|
|
541
541
|
}
|
|
542
542
|
slot.setDisplayed(true);
|
|
543
543
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@folklore/ads",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.91",
|
|
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": "43c75c431f508b5550824e00bc26bffe52a0cc7f",
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@folklore/hooks": "^0.0.71",
|
|
56
56
|
"@folklore/tracking": "^0.0.26",
|