Skip to content

Commit

Permalink
Fix lint issues from merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
not-a-rootkit committed Dec 15, 2023
1 parent 1f143d2 commit c13a53e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions DuckDuckGo/Tab/Navigation/ExternalAppSchemeHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,12 @@ extension ExternalAppSchemeHandler: NavigationResponder {
permissionModel.permissions([permissionType], requestedForDomain: domain, url: externalUrl) { [workspace] isGranted in
if isGranted {
workspace.open(externalUrl)

// if "Always allow" is set and this is the only navigation in the tab: close the tab
if self?.shouldCloseTabOnExternalAppOpen == true, let webView = navigationAction.targetFrame?.webView {
if self.shouldCloseTabOnExternalAppOpen == true, let webView = navigationAction.targetFrame?.webView {
webView.close()
}
}
}

return .cancel
}

Expand Down

0 comments on commit c13a53e

Please sign in to comment.