mirror of
https://github.com/bitwarden/browser
synced 2025-01-12 10:27:20 +01:00
Merge pull request #1339 from bitwarden/fix/safari-app-crash-2
Fix completion handler nil crashes SFSafariWindow
This commit is contained in:
commit
25f2697dd2
@ -175,7 +175,9 @@ class SafariExtensionViewController: SFSafariExtensionViewController, WKScriptMe
|
||||
} else if command == "createNewTab" {
|
||||
if let data = m.data, let url = URL(string: data) {
|
||||
SFSafariApplication.getActiveWindow { win in
|
||||
win?.openTab(with: url, makeActiveIfPossible: true, completionHandler: nil)
|
||||
win?.openTab(with: url, makeActiveIfPossible: true, completionHandler: { _ in
|
||||
// Tab opened
|
||||
})
|
||||
}
|
||||
}
|
||||
} else if command == "reloadExtension" {
|
||||
|
Loading…
Reference in New Issue
Block a user