niantic removed controllingTeam from the portal details - we have to use the team from the summary data

This commit is contained in:
Jon Atkins
2014-05-17 00:27:15 +01:00
parent 460e8562f2
commit 86327fa578
5 changed files with 14 additions and 10 deletions

View File

@ -2,7 +2,7 @@
// @id iitc-plugin-show-linked-portals@fstopienski
// @name IITC plugin: Show linked portals
// @category Portal Info
// @version 0.1.1.@@DATETIMEVERSION@@
// @version 0.1.2.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADURL@@
@ -38,8 +38,8 @@ window.plugin.showLinkedPortal.portalDetail = function (data) {
// don't render linked portal data if portal is neutral.
// (the data can remain sometimes - when a portal decays?)
if (data.portalDetails.controllingTeam.team == 'NEUTRAL')
return;
// if (data.portalDetails.controllingTeam.team == 'NEUTRAL')
// return;
var d = data.portalDetails.portalV2,
c = 1;