Skip to content

Commit

Permalink
Always enable prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
jaceklyp committed Apr 25, 2024
1 parent 7e756e8 commit 93dda5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ class MainViewController: UIViewController {
private var host: UIHostingController<BrokenSitePromptView>?

@objc func attemptToShowBrokenSitePrompt(_ notification: Notification) {
guard !userDidInteractWithBrokenSitePrompt,
guard /*!userDidInteractWithBrokenSitePrompt*///,
let event = notification.userInfo?[UserBehaviorEvent.Key.event] as? UserBehaviorEvent,
let url = currentTab?.url, !url.isDuckDuckGo,
notificationView == nil,
Expand Down
4 changes: 2 additions & 2 deletions DuckDuckGo/UserBehaviorMonitor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ final class UserBehaviorMonitor {
if let timestamp = timestamp, date.timeIntervalSince(timestamp) < interval {
eventMapping.fire(eventToFire)
PixelExperiment.install() // Do we have better place to install it?
if PixelExperiment.cohort == eventToFire.matchingPixelExperimentVariant {
// if PixelExperiment.cohort == eventToFire.matchingPixelExperimentVariant {
NotificationCenter.default.post(name: .userBehaviorDidMatchExperimentVariant,
object: self,
userInfo: [UserBehaviorEvent.Key.event: eventToFire])
}
// }
}
}
}
Expand Down

0 comments on commit 93dda5e

Please sign in to comment.