Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Adding a check for checking active tabtray so addandselecttab will no…
Browse files Browse the repository at this point in the history
…t be out of bounds
  • Loading branch information
soner-yuksel committed Jul 7, 2021
1 parent b404660 commit 8f94a4a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Client/Frontend/Browser/BrowserViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1544,8 +1544,10 @@ class BrowserViewController: UIViewController {
request = nil
}

switchToPrivacyMode(isPrivate: isPrivate)
_ = tabManager.addTabAndSelect(request, isPrivate: isPrivate)
if tabTrayController != nil {
switchToPrivacyMode(isPrivate: isPrivate)
_ = tabManager.addTabAndSelect(request, isPrivate: isPrivate)
}
}

func openBlankNewTab(attemptLocationFieldFocus: Bool, isPrivate: Bool = false, searchFor searchText: String? = nil) {
Expand Down

0 comments on commit 8f94a4a

Please sign in to comment.