Fix color resetting in plugins

Remove defaulting in highlighters, which isn't needed, and was setting
the wrong thing anyway.  Also a little new hightlighter
This commit is contained in:
vita10gy
2013-09-12 20:20:16 -05:00
parent e9d173402b
commit 7eaf196dee
5 changed files with 37 additions and 26 deletions

View File

@ -2,7 +2,7 @@
// @id iitc-plugin-highlight-portals-my-portals@vita10gy
// @name IITC plugin: highlight my portals
// @category Highlighter
// @version 0.1.0.@@DATETIMEVERSION@@
// @version 0.1.1.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADURL@@
@ -57,10 +57,7 @@ window.plugin.portalHighligherMyPortals.highlight = function(data) {
if(color !== '') {
data.portal.setStyle({fillColor: color, fillOpacity: opacity});
} else {
data.portal.setStyle({color: COLORS[getTeam(data.portal.options.details)],
fillOpacity: 0.5});
}
}
}
}