Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
magma1447 committed Feb 13, 2017
2 parents 65dc879 + 2a90ac5 commit 6f6c089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions greasemonkey-geocaching-projectgc.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// @description Adds links and data to Geocaching.com to make it collaborate with PGC
// @include http://www.geocaching.com/*
// @include https://www.geocaching.com/*
// @version 1.6.4
// @version 1.6.5
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js
// @require https://greasyfork.org/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=19641
// @grant GM_xmlhttpRequest
Expand Down Expand Up @@ -588,10 +588,10 @@
if (cacheData.country.length > 0) {
location.push(cacheData.country);
}
if (cacheData.region.length > 0) {
if (cacheData.region !== null && cacheData.region.length > 0) {
location.push(cacheData.region);
}
if (cacheData.county.length > 0) {
if (cacheData.county !== null && cacheData.county.length > 0) {
location.push(cacheData.county);
}
location = location.join(' / ');
Expand Down

0 comments on commit 6f6c089

Please sign in to comment.