@mjhls/mjh-framework 1.0.959-gridcontent-nojs-fix-v1 → 1.0.959-gridcontent-nojs-fix-v2
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/GridContent.js
CHANGED
|
@@ -435,7 +435,6 @@ var GridContent = function (_React$Component) {
|
|
|
435
435
|
// Checking lgInfeedAd flag in desktop view ( window >= 1400px ).
|
|
436
436
|
if (lgInfeedAd && typeof window !== 'undefined' && window.innerWidth >= 1400) {
|
|
437
437
|
brandInsight.interval = 8;
|
|
438
|
-
posts = data;
|
|
439
438
|
} else if (typeof window !== 'undefined' && window.innerWidth < 1400) {
|
|
440
439
|
brandInsight.interval = 5;
|
|
441
440
|
posts = data;
|
|
@@ -464,6 +463,8 @@ var GridContent = function (_React$Component) {
|
|
|
464
463
|
posts = insert(posts, pos, inFeedAd);
|
|
465
464
|
pos += brandInsight.interval + 1;
|
|
466
465
|
}
|
|
466
|
+
} else {
|
|
467
|
+
posts = data;
|
|
467
468
|
}
|
|
468
469
|
posts = firstThree.concat(posts);
|
|
469
470
|
} else {
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -425,7 +425,6 @@ var GridContent = function (_React$Component) {
|
|
|
425
425
|
// Checking lgInfeedAd flag in desktop view ( window >= 1400px ).
|
|
426
426
|
if (lgInfeedAd && typeof window !== 'undefined' && window.innerWidth >= 1400) {
|
|
427
427
|
brandInsight.interval = 8;
|
|
428
|
-
posts = data;
|
|
429
428
|
} else if (typeof window !== 'undefined' && window.innerWidth < 1400) {
|
|
430
429
|
brandInsight.interval = 5;
|
|
431
430
|
posts = data;
|
|
@@ -454,6 +453,8 @@ var GridContent = function (_React$Component) {
|
|
|
454
453
|
posts = insert(posts, pos, inFeedAd);
|
|
455
454
|
pos += brandInsight.interval + 1;
|
|
456
455
|
}
|
|
456
|
+
} else {
|
|
457
|
+
posts = data;
|
|
457
458
|
}
|
|
458
459
|
posts = firstThree.concat(posts);
|
|
459
460
|
} else {
|