File tree 1 file changed +3
-4
lines changed
packages/gitbook/src/components/Ads
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,12 @@ export function Ad({
74
74
let cancelled = false ;
75
75
76
76
const previewParam = new URL ( window . location . href ) . searchParams . get ( 'ads_preview' ) ;
77
- const preview = ! ! previewParam && previewParam !== 'placeholder' ;
77
+ const preview = ! ! previewParam ;
78
78
const realZoneId = preview ? PREVIEW_ZONE_ID : zoneId ;
79
79
const showPlaceholderAd =
80
80
previewParam === 'placeholder' ||
81
81
( siteAdsStatus &&
82
- ( siteAdsStatus === SiteAdsStatus . Pending ||
83
- siteAdsStatus === SiteAdsStatus . InReview ) ) ;
82
+ ( siteAdsStatus === SiteAdsStatus . Pending || siteAdsStatus === SiteAdsStatus . InReview ) )
84
83
85
84
if ( ! realZoneId ) {
86
85
return ;
@@ -92,7 +91,7 @@ export function Ad({
92
91
ignore : ignore || preview ,
93
92
zoneId : realZoneId ,
94
93
mode,
95
- source : showPlaceholderAd ? 'placeholder' : 'live' ,
94
+ source : showPlaceholderAd ? 'placeholder' : 'live'
96
95
} ) ;
97
96
98
97
if ( cancelled ) {
You can’t perform that action at this time.
0 commit comments