fix defense plugin rendering details for portals not added to the map (and therefore not getting removed)
This commit is contained in:
parent
d778720234
commit
c24da31b9d
@ -2,7 +2,7 @@
|
|||||||
// @id iitc-plugin-defense@gluckies
|
// @id iitc-plugin-defense@gluckies
|
||||||
// @name IITC plugin: portal defense
|
// @name IITC plugin: portal defense
|
||||||
// @category Layer
|
// @category Layer
|
||||||
// @version 0.2.1.@@DATETIMEVERSION@@
|
// @version 0.2.2.@@DATETIMEVERSION@@
|
||||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @downloadURL @@DOWNLOADURL@@
|
||||||
@ -82,7 +82,10 @@ window.plugin.portalDefense.renderAttackRegion = function(portal) {
|
|||||||
|
|
||||||
window.plugin.portalDefense.reload = function() {
|
window.plugin.portalDefense.reload = function() {
|
||||||
$.each(window.portals, function(ind, portal) {
|
$.each(window.portals, function(ind, portal) {
|
||||||
|
// only render mitigation details for portals added to the map
|
||||||
|
if (portal._map) {
|
||||||
window.plugin.portalDefense.renderAttackRegion(portal)
|
window.plugin.portalDefense.renderAttackRegion(portal)
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user