mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-05 21:47:48 +01:00
always attempt location fetch
if it fails, then we just fallback to user interaction
This commit is contained in:
@@ -96,6 +96,8 @@ export default function OpenWeatherMap({ options }) {
|
||||
);
|
||||
};
|
||||
|
||||
if (!requesting && !location) requestLocation();
|
||||
|
||||
if (!location) {
|
||||
return (
|
||||
<button type="button" onClick={() => requestLocation()} className="flex flex-col justify-center">
|
||||
|
||||
Reference in New Issue
Block a user