How to use the Browser Geolocation API with Rails Discussion
Discussion for
How to use the Browser Geolocation API with Rails
Back to Rails: I would prefer Ruby/Rails screencasts over more and more Stimulus. Please don't become a Stimulus videocast.
Little es6 javascript tweak, we can switch from this.success.bind(this)
to this.success
if we define the functions with =>
operator:
success = (position) => {
...
}
error = () => {
...
}