mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 06:38:46 +00:00
always attempt location fetch
if it fails, then we just fallback to user interaction
This commit is contained in:
parent
5c347d9427
commit
85bc078c46
2 changed files with 5 additions and 1 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue