Skip to content

[eslint] 'navigator' is not defined. (no-undef) #7

@uditb

Description

@uditb

getUserLocationHandler = () => {
//console.log('Button pressed');
navigator.geolocation.getCurrentPosition(
position => {
console.log(position);
},
err => {
console.log(err);
},
{ enableHighAccuracy: true, timeout: 20000, maximumAge: 1000 }
);
}

Following is the error -
[eslint] 'navigator' is not defined. (no-undef)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions