Basic GUI client, login dialog, various comments fixes after copypaste.
Some checks failed
Linting and tests / Linting (push) Failing after 6s
Some checks failed
Linting and tests / Linting (push) Failing after 6s
This commit is contained in:
13
client/internal/helpers/platform.go
Normal file
13
client/internal/helpers/platform.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package helpers
|
||||
|
||||
import "runtime"
|
||||
|
||||
// IsMobile returns true if current platform related to mobile devices (phones, tablets).
|
||||
func IsMobile() bool {
|
||||
switch runtime.GOOS {
|
||||
case "android", "ios":
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user