Update assets/js/frontend/geolocation.js (fix coding standards)

Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
This commit is contained in:
Barry Hughes 2021-02-25 13:46:46 -08:00 committed by GitHub
parent 761f155fc3
commit 5380d119ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ jQuery( function( $ ) {
var method = $this.attr( 'method' );
var hasField = $this.find( 'input[name="v"]' ).length > 0;
if (method && 'get' === method.toLowerCase() && ! hasField) {
if ( method && 'get' === method.toLowerCase() && ! hasField ) {
$this.append( '<input type="hidden" name="v" value="' + geo_hash + '" />' );
} else {
var href = $this.attr( 'action' );