diff --git a/plugins/portal-highlighter-level-color.user.js b/plugins/portal-highlighter-level-color.user.js index 4662f295..5118fd77 100644 --- a/plugins/portal-highlighter-level-color.user.js +++ b/plugins/portal-highlighter-level-color.user.js @@ -2,7 +2,7 @@ // @id iitc-plugin-highlight-portals-level-color@vita10gy // @name IITC plugin: highlight portals by level color // @category Highlighter -// @version 0.1.1.@@DATETIMEVERSION@@ +// @version 0.1.2.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -22,8 +22,7 @@ window.plugin.portalHighligherPortalsLevelColor = function() {}; window.plugin.portalHighligherPortalsLevelColor.colorLevel = function(data) { - var d = data.portal.options.details; - var portal_level = Math.floor(getPortalLevel(d)); + var portal_level = data.portal.options.data.level; var opacity = .6; data.portal.setStyle({fillColor: COLORS_LVL[portal_level], fillOpacity: opacity}); }