Skip to content

Commit

Permalink
fix dapp issue
Browse files Browse the repository at this point in the history
  • Loading branch information
soaryong-c committed Jul 18, 2023
1 parent b8c5779 commit c33fee4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cosmostation/Controller/Main/CommonWCViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1352,6 +1352,11 @@ extension CommonWCViewController: WKNavigationDelegate, WKUIDelegate {
UIApplication.shared.open(URL(string: newUrl.removingPercentEncoding!)!, options: [:])
decisionHandler(.cancel)
return
} else if (url.absoluteString.starts(with: "cosmostation://wc")) {
let newUrl = url.absoluteString.replacingOccurrences(of: "uri=", with: "")
UIApplication.shared.open(URL(string: newUrl.removingPercentEncoding!)!, options: [:])
decisionHandler(.cancel)
return
}
}

Expand Down

0 comments on commit c33fee4

Please sign in to comment.