From 77e55cba996ce3b37bdcc7f4076d2c3bf8c4193e Mon Sep 17 00:00:00 2001 From: fkloft Date: Thu, 9 Jul 2015 18:04:03 +0200 Subject: [PATCH] [show-linked-portals] fix for recent intel changes --- plugins/show-linked-portals.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/show-linked-portals.user.js b/plugins/show-linked-portals.user.js index 4efcc8cb..eaecc16d 100644 --- a/plugins/show-linked-portals.user.js +++ b/plugins/show-linked-portals.user.js @@ -2,7 +2,7 @@ // @id iitc-plugin-show-linked-portals@fstopienski // @name IITC plugin: Show linked portals // @category Portal Info -// @version 0.3.0.@@DATETIMEVERSION@@ +// @version 0.3.1.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -61,7 +61,7 @@ window.plugin.showLinkedPortal.portalDetail = function (data) { var title; var data = (portals[guid] && portals[guid].options.data) || portalDetail.get(guid) || null; - if(data) { + if(data && data.title) { title = data.title; div.append($('').attr({ 'src': fixPortalImageUrl(data.image), @@ -73,7 +73,7 @@ window.plugin.showLinkedPortal.portalDetail = function (data) { div .addClass('outOfRange') .append($('') - .html('Portal out of range.
' + lengthShort)); + .html('Portal not loaded.
' + lengthShort)); } div