Update for iOS 17.
This commit is contained in:
@@ -30,7 +30,7 @@ class BrowserSceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
|
||||
if let urlContext = connectionOptions.urlContexts.first {
|
||||
let url = urlContext.url
|
||||
browserViewController.tab.beginLoadingURL(url)
|
||||
browserViewController.currentTab.beginLoadingURL(url)
|
||||
}
|
||||
|
||||
#if targetEnvironment(macCatalyst)
|
||||
@@ -59,8 +59,8 @@ class BrowserSceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>)
|
||||
{
|
||||
for urlContext in URLContexts {
|
||||
if browserViewController?.tab.url == nil {
|
||||
browserViewController?.tab.beginLoadingURL(urlContext.url)
|
||||
if browserViewController?.currentTab.url == nil {
|
||||
browserViewController?.currentTab.beginLoadingURL(urlContext.url)
|
||||
} else {
|
||||
browserViewController?.createNewTab(withURL: urlContext.url)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user