mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-07 22:18:30 -04:00
a713485599
fixes #3008 port 1.5
13 lines
270 B
Go
13 lines
270 B
Go
package geolocation
|
|
|
|
import "github.com/AvengeMedia/DankMaterialShell/core/internal/log"
|
|
|
|
func NewClient() Client {
|
|
geoclueClient, err := newGeoClueClient()
|
|
if err != nil {
|
|
log.Warnf("GeoClue2 unavailable: %v", err)
|
|
return newIpClient()
|
|
}
|
|
return geoclueClient
|
|
}
|