diff --git a/plugins/show-linked-portals.user.js b/plugins/show-linked-portals.user.js index e39719cd..0c0d3690 100644 --- a/plugins/show-linked-portals.user.js +++ b/plugins/show-linked-portals.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @id iitc-plugin-show-linked-portals@fstopienski // @name IITC plugin: Show linked portals -// @version 0.0.1.@@DATETIMEVERSION@@ +// @version 0.0.2.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -79,7 +79,8 @@ window.plugin.showLinkedPortal.getPortalByGuid = function (guid) { portalInfoString = ''; var portalNameAdressAlt = "'" + portalDetails.portalV2.descriptiveText.TITLE + "' (" + portalDetails.portalV2.descriptiveText.ADDRESS + ")"; var portalNameAdressTitle = "'" + portalDetails.portalV2.descriptiveText.TITLE + "'
(" + portalDetails.portalV2.descriptiveText.ADDRESS + ")"; - portalInfoString = '' + portalNameAdressAlt + ''; + var imageUrl = (portalDetails.imageByUrl ? portalDetails.imageByUrl.imageUrl : ''); + portalInfoString = '' + portalNameAdressAlt + ''; } return portalInfoString; };