From f045cd5714d862639219ba4929b9e6975a8bfeda Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 31 Mar 2014 18:11:26 +0100 Subject: [PATCH] fix portals-list for portals with no title fix #789 --- plugins/portals-list.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/portals-list.user.js b/plugins/portals-list.user.js index e2c3a786..75ee2fb1 100644 --- a/plugins/portals-list.user.js +++ b/plugins/portals-list.user.js @@ -2,7 +2,7 @@ // @id iitc-plugin-portals-list@teo96 // @name IITC plugin: show list of portals // @category Info -// @version 0.1.0.@@DATETIMEVERSION@@ +// @version 0.1.1.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -84,8 +84,8 @@ window.plugin.portalslist.getPortals = function() { 'guid': i, 'teamN': teamN, // TEAM_NONE, TEAM_RES or TEAM_ENL 'team': d.team, // "NEUTRAL", "RESISTANCE" or "ENLIGHTENED" - 'name': d.title, - 'nameLower': d.title.toLowerCase(), + 'name': d.title || '(untitled)', + 'nameLower': d.title && d.title.toLowerCase(), 'level': portal.options.level, 'health': d.health, 'resCount': d.resCount,