mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-06 00:48:08 +02:00
swift formatting
This commit is contained in:
parent
247fb190fa
commit
5b72888ae8
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit b74ee7b3ee823a820854623cc32c8522a09e9f4d
|
||||
Subproject commit 255bd3962d268bec8f66411676049803bb29e0d3
|
@ -183,7 +183,8 @@ class SafariExtensionViewController: SFSafariExtensionViewController, WKScriptMe
|
||||
do {
|
||||
let fileManager = FileManager.default
|
||||
if !fileManager.fileExists(atPath: url.absoluteString) {
|
||||
fileManager.createFile(atPath: url.absoluteString, contents: Data(), attributes: nil)
|
||||
fileManager.createFile(atPath: url.absoluteString, contents: Data(),
|
||||
attributes: nil)
|
||||
}
|
||||
try data!.write(to: url)
|
||||
} catch {
|
||||
@ -215,7 +216,8 @@ class SafariExtensionViewController: SFSafariExtensionViewController, WKScriptMe
|
||||
}
|
||||
|
||||
extension SafariExtensionViewController: WKUIDelegate {
|
||||
func webView(_: WKWebView, runOpenPanelWith _: WKOpenPanelParameters, initiatedByFrame _: WKFrameInfo, completionHandler: @escaping ([URL]?) -> Void) {
|
||||
func webView(_: WKWebView, runOpenPanelWith _: WKOpenPanelParameters, initiatedByFrame _: WKFrameInfo,
|
||||
completionHandler: @escaping ([URL]?) -> Void) {
|
||||
let openPanel = NSOpenPanel()
|
||||
openPanel.canChooseFiles = true
|
||||
openPanel.begin { result in
|
||||
|
Loading…
Reference in New Issue
Block a user