mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-23 18:36:46 +00:00
Other(refactor): Move UserAgent out of frontend
This commit is contained in:
9
internal/bridge/useragent.go
Normal file
9
internal/bridge/useragent.go
Normal file
@ -0,0 +1,9 @@
|
||||
package bridge
|
||||
|
||||
func (b *Bridge) GetCurrentUserAgent() string {
|
||||
return b.userAgent.String()
|
||||
}
|
||||
|
||||
func (b *Bridge) SetCurrentPlatform(platform string) {
|
||||
b.userAgent.SetPlatform(platform)
|
||||
}
|
||||
Reference in New Issue
Block a user