Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
improve isStoreURL check logic (add shortlink url host)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonPark committed Sep 8, 2023
1 parent c13f3d4 commit 1b4030f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ extension BrowserViewController: WKNavigationDelegate {
// leave a 'Back to Safari' button in the status bar, which we do not want.
fileprivate func isStoreURL(_ url: URL) -> Bool {
if url.scheme == "http" || url.scheme == "https" {
if url.host == "itunes.apple.com" || url.host == "apps.apple.com" {
if url.host == "itunes.apple.com" || url.host == "apps.apple.com" || url.host == "appsto.re" {
return true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ extension PlaylistWebLoader: WKNavigationDelegate {
// leave a 'Back to Safari' button in the status bar, which we do not want.
fileprivate func isStoreURL(_ url: URL) -> Bool {
if url.scheme == "http" || url.scheme == "https" {
if url.host == "itunes.apple.com" || url.host == "apps.apple.com" {
if url.host == "itunes.apple.com" || url.host == "apps.apple.com" || url.host == "appsto.re" {
return true
}
}
Expand Down

0 comments on commit 1b4030f

Please sign in to comment.