Skip to content

Commit

Permalink
Merge pull request #8364 from google/enhancement/8363-como-final-bann…
Browse files Browse the repository at this point in the history
…er-dismissal-tooltip
  • Loading branch information
aaemnnosttv authored Mar 8, 2024
2 parents e6b5280 + 131e28d commit 0c6c864
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ function ConsentModeSetupCTAWidget( { Widget, WidgetNull } ) {
'dismiss_notification'
);

showTooltip();

// For the first two dismissals, we show the notification again in two weeks.
if ( dismissCount < 2 ) {
showTooltip();

const twoWeeksInSeconds = WEEK_IN_SECONDS * 2;
await dismissPrompt( CONSENT_MODE_SETUP_CTA_WIDGET_SLUG, {
expiresInSeconds: twoWeeksInSeconds,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ function AdBlockingRecoverySetupCTAWidget( { Widget, WidgetNull } ) {
'dismiss_notification'
);

showTooltip();

// For the first two dismissals, we show the notification again in two weeks.
if ( dismissCount < 2 ) {
showTooltip();

const twoWeeksInSeconds = WEEK_IN_SECONDS * 2;
await dismissPrompt( AD_BLOCKING_RECOVERY_MAIN_NOTIFICATION_KEY, {
expiresInSeconds: twoWeeksInSeconds,
Expand Down

0 comments on commit 0c6c864

Please sign in to comment.