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:
@ -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});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user