Skip to content

Commit

Permalink
renames to isWebLink (#4535)
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro authored Dec 4, 2024
1 parent 3f4c4eb commit b27785d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions RevenueCatUI/CustomerCenter/URLUtilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ enum URLUtilities {

extension URL {

var isDeeplink: Bool {
var isWebLink: Bool {
switch scheme?.lowercased() {
case "http", "https":
return false
default:
return true
default:
return false
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ private extension ManageSubscriptionsViewModel {
}
switch openMethod {
case .external,
_ where url.isDeeplink:
_ where !url.isWebLink:
URLUtilities.openURLIfNotAppExtension(url)
case .inApp:
self.inAppBrowserURL = .init(url: url)
Expand Down

0 comments on commit b27785d

Please sign in to comment.