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-missing-resonators@vita10gy
|
||||
// @name IITC plugin: highlight portals missing resonators
|
||||
// @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@@
|
||||
@ -46,11 +46,7 @@ window.plugin.portalsMissingResonators.highlight = function(data) {
|
||||
params["dashArray"] = dash;
|
||||
}
|
||||
data.portal.setStyle(params);
|
||||
} else {
|
||||
data.portal.setStyle({color: COLORS[getTeam(data.portal.options.details)],
|
||||
fillOpacity: 0.5,
|
||||
dashArray: null});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user