mirror of
https://github.com/mue/mue.git
synced 2026-07-07 14:17:09 +02:00
fix: weather auto location not working on firefox
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user