Call activateBrowser instead of activateSafari

This commit is contained in:
Ivan Grachyov 2021-06-16 20:11:00 +03:00
parent 811c387638
commit 14a935febb
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ class Agent {
let windowController = Window.showNew()
let approveViewController = ApproveViewController.with(title: title, meta: meta) { [weak self] result in
Window.closeAll()
Window.activateSafari()
Window.activateBrowser()
if result {
self?.proceedAfterAuthentication(reason: title, completion: completion)
} else {
@ -120,7 +120,7 @@ class Agent {
WalletConnect.shared.connect(session: session, address: account.address) { [weak self] connected in
if connected {
Window.closeAll()
Window.activateSafari()
Window.activateBrowser()
} else {
self?.showErrorMessage("Failed to connect")
}

View File

@ -22,7 +22,7 @@ class ErrorViewController: NSViewController {
@IBAction func actionButtonTapped(_ sender: Any) {
Window.closeAll()
Window.activateSafari()
Window.activateBrowser()
}
}