Make it so when a URL is opened and there are no open tabs, use the existing tab
This commit is contained in:
@@ -53,7 +53,11 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>)
|
||||
{
|
||||
for urlContext in URLContexts {
|
||||
browserViewController?.createNewTab(withURL: urlContext.url)
|
||||
if browserViewController?.tab.url == nil {
|
||||
browserViewController?.tab.beginLoadingURL(urlContext.url)
|
||||
} else {
|
||||
browserViewController?.createNewTab(withURL: urlContext.url)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user