Skip to content

Commit 285fce7

Browse files
committed
adding cadence to the config file
1 parent 580a08f commit 285fce7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

config/story.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"base": ".story-body [id^=zone-el]",
33
"ignore": ["zone-el-16"],
4+
"cadence": {
5+
"subscriber": 4,
6+
"dma": 3,
7+
"default": 2
8+
},
49
"zones": [
510
{
611
"id": "zone-taboola-recommendations",

index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@ function distributeZones(locker) {
3131

3232
// Set cadence for subscriber vs. nonsubscriber vs. nonsubscriber out of market in test domains
3333
const subscriber = locker.user.isSubscriber();
34-
const dma = subscriber ? true : await locker.user.isInDMA();
35-
const nonsubscriberOutOfMarket = !subscriber && !dma;
36-
const domainName = locker.getConfig('domainName');
37-
const allowedDomains = ["www.bnd.com", "www.myrtlebeachonline.com"];
38-
const cadence = allowedDomains.includes(domainName) && nonsubscriberOutOfMarket ? 2 : (subscriber ? 4 : 3);
39-
34+
const cadence = subscriber ? 4 : 2;
4035
zones.distribute(cadence);
4136

4237
// Temporary cleanup

0 commit comments

Comments
 (0)