mirror of
https://github.com/bitwarden/browser
synced 2024-12-27 10:23:48 +01:00
format swift
This commit is contained in:
parent
5b72888ae8
commit
b841805c1b
@ -184,7 +184,7 @@ class SafariExtensionViewController: SFSafariExtensionViewController, WKScriptMe
|
||||
let fileManager = FileManager.default
|
||||
if !fileManager.fileExists(atPath: url.absoluteString) {
|
||||
fileManager.createFile(atPath: url.absoluteString, contents: Data(),
|
||||
attributes: nil)
|
||||
attributes: nil)
|
||||
}
|
||||
try data!.write(to: url)
|
||||
} catch {
|
||||
@ -217,7 +217,7 @@ class SafariExtensionViewController: SFSafariExtensionViewController, WKScriptMe
|
||||
|
||||
extension SafariExtensionViewController: WKUIDelegate {
|
||||
func webView(_: WKWebView, runOpenPanelWith _: WKOpenPanelParameters, initiatedByFrame _: WKFrameInfo,
|
||||
completionHandler: @escaping ([URL]?) -> Void) {
|
||||
completionHandler: @escaping ([URL]?) -> Void) {
|
||||
let openPanel = NSOpenPanel()
|
||||
openPanel.canChooseFiles = true
|
||||
openPanel.begin { result in
|
||||
|
Loading…
Reference in New Issue
Block a user