Skip to content

Commit

Permalink
Formatting for the context
Browse files Browse the repository at this point in the history
  • Loading branch information
soner-yuksel committed Jun 26, 2024
1 parent b8a2555 commit e702542
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ios/brave-ios/App/iOS/Delegates/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,13 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
return
}

if case .url(let navigationPathURL, _) = routerpath, let pathURL = navigationPathURL, pathURL.isFileURL {
if case .url(let navigationPathURL, _) = routerpath, let pathURL = navigationPathURL,
pathURL.isFileURL
{
defer {
pathURL.stopAccessingSecurityScopedResource()
}

let canAccessFileURL = pathURL.startAccessingSecurityScopedResource()

if !canAccessFileURL {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3455,7 +3455,7 @@ extension BrowserViewController {
NavigationPath.handle(nav: path, with: self)
}
}

public func submitSearchText(_ text: String, isBraveSearchPromotion: Bool = false) {
var engine = profile.searchEngines.defaultEngine(
forType: privateBrowsingManager.isPrivateBrowsing ? .privateMode : .standard
Expand Down

0 comments on commit e702542

Please sign in to comment.