Description of the issue:
Website using geolocation to get local weather does not work on brave desktop, possibly android browser as well.
Steps to Reproduce (add as many as necessary): 1. 2. 3.
- Go to https://redskyready.com/wx/
- Allow geolocation if it triggers
- If the geolocation works additional data will flow in including hourly weather, weekly forecast etc. The website works fine in Edge and Chrome.
- Gelocation does not trigger or does not get the data.
- Inspect element Error in fetchandstorelocation
"
wx/:324 Error in fetchAndStoreLocation:
-
GeolocationPositionError
-
code: 2
-
message: “”
-
[[Prototype]]: GeolocationPositionError
1. PERMISSION_DENIED: 1
2. POSITION_UNAVAILABLE: 2
3. TIMEOUT: 3
4. code: (...)
5. message: (...)
7. constructor: ƒ GeolocationPositionError()
8. Symbol(Symbol.toStringTag): "GeolocationPositionError"
9. get code: ƒ code()
10. get message: ƒ message()
11. [[Prototype]]: Object
fetchAndStoreLocation @ wx/:324
"
Actual Result (gifs and screenshots are welcome!):
Expected result:
Reproduces how often:
Every time Desktop
Often on Android.
Operating System and Brave Version(See the About Brave
page in the main menu):
Windows 10
Version 1.74.48
Android 14
Additional Information:
There is likely a better way to write my code to fix this but it works on all the other browsers so if you could fix it that would be awesome!