mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-17 01:31:25 +01:00
Fix completion handler nil crashes SFSafariWindow
This commit is contained in:
parent
f024441b6c
commit
8f032fd03d
@ -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