diff --git a/plugins/show-address.user.js b/plugins/show-address.user.js index 4f218ea2..50c72c14 100644 --- a/plugins/show-address.user.js +++ b/plugins/show-address.user.js @@ -5,7 +5,7 @@ // @namespace https://github.com/breunigs/ingress-intel-total-conversion // @updateURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/show-address.user.js // @downloadURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/show-address.user.js -// @description Portal address will show in the sidebar. +// @description Portal address will show in the sidebar. // @include http://www.ingress.com/intel* // @match http://www.ingress.com/intel* // ==/UserScript== @@ -21,19 +21,21 @@ if(typeof window.plugin !== 'function') window.plugin = function() {}; window.plugin.portalAddress = function() {}; window.plugin.portalAddress.portalDetail = function(data) { - //If there's 4 sets of comma delimieted info the last one is the country, so get rid of it. If the country - //is in the [2] then it doesn't matter because address is usually short enough to fit. - var address = data.portalDetails.portalV2.descriptiveText.ADDRESS.split(',').splice(0,3).join(','); + // If there's 4 sets of comma delimieted info the last one is the + // country, so get rid of it. If the country is in the [2] then it + // doesn't matter because address is usually short enough to fit. + var d = data.portalDetails.portalV2; + var address = d.descriptiveText.ADDRESS.split(',').splice(0,3).join(','); $('.imgpreview').append('