fix: weather auto location not working on firefox

This commit is contained in:
David Ralph 2021-05-01 11:45:12 +01:00
parent 84dbe5cb69
commit f2f683201d
1 changed files with 6 additions and 3 deletions

View File

@ -32,12 +32,15 @@ export default class TimeSettings extends React.PureComponent {
this.setState({
location: data[0].name
});
document.querySelector('.reminder-info').style.display = 'block';
localStorage.setItem('showReminder', true);
}, (error) => {
// firefox requires this 2nd function
console.log(error);
}, {
enableHighAccuracy: true
});
document.querySelector('.reminder-info').style.display = 'block';
localStorage.setItem('showReminder', true);
}
render() {