mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
24 lines
747 B
Swift
24 lines
747 B
Swift
//
|
|
// Created by Dmitry Bespalov on 10.02.22.
|
|
// Copyright (c) 2022 Gnosis Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
/// Custom peer information for the Gnosis Safe web app.
|
|
class GnosisSafeWebPeerInfo: WebConnectionPeerInfo {
|
|
var browser: String? {
|
|
guard let description = description else { return nil }
|
|
let parts = description.split(separator: ";")
|
|
guard parts.count == 2, let part = parts.first else { return nil }
|
|
return String(part)
|
|
}
|
|
|
|
var appVersion: String? {
|
|
guard let description = description else { return nil }
|
|
let parts = description.split(separator: ";")
|
|
guard parts.count == 2, let part = parts.last else { return nil }
|
|
return String(part)
|
|
}
|
|
}
|