mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-02 08:40:08 +01:00
formatting
This commit is contained in:
parent
1d34b2da10
commit
836bd56ce4
@ -98,16 +98,14 @@ class SafariExtensionViewController: SFSafariExtensionViewController, WKScriptMe
|
||||
let options: TabQueryOptions? = jsonDeserialize(json: m!.data)
|
||||
if options?.currentWindow ?? false {
|
||||
SFSafariApplication.getActiveWindow { win in
|
||||
processWindowsForTabs(wins: [win!], options: options
|
||||
, complete: { tabs in
|
||||
processWindowsForTabs(wins: [win!], options: options, complete: { tabs in
|
||||
m!.responseData = jsonSerialize(obj: tabs)
|
||||
self.replyMessage(message: m!)
|
||||
})
|
||||
}
|
||||
} else {
|
||||
SFSafariApplication.getAllWindows { wins in
|
||||
processWindowsForTabs(wins: wins, options: options
|
||||
, complete: { tabs in
|
||||
processWindowsForTabs(wins: wins, options: options, complete: { tabs in
|
||||
m!.responseData = jsonSerialize(obj: tabs)
|
||||
self.replyMessage(message: m!)
|
||||
})
|
||||
@ -341,9 +339,3 @@ class TabMessage: Decodable, Encodable {
|
||||
class TabMessageOptions: Decodable, Encodable {
|
||||
var frameId: Int?
|
||||
}
|
||||
|
||||
class DownloadFileMessage: Decodable, Encodable {
|
||||
var fileName: String
|
||||
var data: String?
|
||||
var type: String?
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user