Skip to content

Commit

Permalink
only show app store prompt on the serp (#2379)
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy authored Jan 24, 2024
1 parent c725cf7 commit 441ab34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DuckDuckGo/TabViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,9 @@ extension TabViewController: WKNavigationDelegate {

appRatingPrompt.registerUsage()

if let scene = self.view.window?.windowScene, appRatingPrompt.shouldPrompt() {
if let scene = self.view.window?.windowScene,
appRatingPrompt.shouldPrompt(),
webView.url?.isDuckDuckGoSearch == true {
SKStoreReviewController.requestReview(in: scene)
appRatingPrompt.shown()
}
Expand Down

0 comments on commit 441ab34

Please sign in to comment.