Skip to content

Commit ab78cd5

Browse files
chore: autopublish 2025-07-28T01:40:54Z
1 parent 25c2004 commit ab78cd5

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Add-on to only display portals for visible/enabled layers, a fix for Unclaimed/P
121121

122122
Bring ameba64/ingress-items icons into IITC
123123

124-
*Version:* 0.1.2
124+
*Version:* 0.1.3
125125

126126

127127

dist/jaiperdu/ingress-icons.meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @author jaiperdu
33
// @name Ingress Icons
44
// @category Appearance
5-
// @version 0.1.2
5+
// @version 0.1.3
66
// @description Bring ameba64/ingress-items icons into IITC
77
// @id ingress-icons@jaiperdu
88
// @namespace https://github.com/IITC-CE/ingress-intel-total-conversion

dist/jaiperdu/ingress-icons.user.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @author jaiperdu
33
// @name Ingress Icons
44
// @category Appearance
5-
// @version 0.1.2
5+
// @version 0.1.3
66
// @description Bring ameba64/ingress-items icons into IITC
77
// @id ingress-icons@jaiperdu
88
// @namespace https://github.com/IITC-CE/ingress-intel-total-conversion
@@ -21,7 +21,7 @@ if(typeof window.plugin !== 'function') window.plugin = function() {};
2121
//PLUGIN AUTHORS: writing a plugin outside of the IITC build environment? if so, delete these lines!!
2222
//(leaving them in place might break the 'About IITC' page or break update checks)
2323
plugin_info.buildName = 'lejeu';
24-
plugin_info.dateTimeVersion = '2022-11-13-184151';
24+
plugin_info.dateTimeVersion = '2025-07-27-171202';
2525
plugin_info.pluginId = 'ingress-icons';
2626
//END PLUGIN AUTHORS NOTE
2727

@@ -101,12 +101,14 @@ function updateMobile(data) {
101101
var el = $('#updatestatus .mods');
102102
if (el) el.remove();
103103

104-
var guid = data.selectedPortalGuid;
104+
var guid = data.selectedPortalGuid || data.guid;
105+
if (guid !== window.selectedPortal) return;
106+
105107
if (!window.portals[guid]) return;
106108

107-
var details = window.portalDetail.get(guid);
109+
var details = window.portals[guid].getDetails();
108110
var t = '';
109-
if (details) {
111+
if (details && details.mods) {
110112
getModList(details).forEach(function (item) {
111113
t += '<div' + (item.tooltip.length ? ' title="' + item.tooltip + '"' : '') + ' class="' + item.class + '"></div>';
112114
});
@@ -214,7 +216,10 @@ function setup() {
214216
}').appendTo('head');
215217

216218
window.getModDetails = getModDetails;
217-
if (window.isSmartphone()) window.addHook('portalSelected', updateMobile);
219+
if (window.isSmartphone()) {
220+
window.addHook('portalSelected', updateMobile);
221+
window.addHook('portalDetailLoaded', updateMobile);
222+
}
218223
}
219224

220225
setup.info = plugin_info; //add the script info data to the function as a property

dist/meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@
15261526
"none"
15271527
],
15281528
"id_hash": "VRBB-l8-maximizer-by-Xelminoe",
1529-
"updatedAt": "2025-07-22T16:33:13.428Z"
1529+
"updatedAt": "2025-07-22T16:33:19.000Z"
15301530
},
15311531
{
15321532
"author": "Zaso",
@@ -2302,7 +2302,7 @@
23022302
"author": "jaiperdu",
23032303
"name": "Ingress Icons",
23042304
"category": "Appearance",
2305-
"version": "0.1.2",
2305+
"version": "0.1.3",
23062306
"description": "Bring ameba64/ingress-items icons into IITC",
23072307
"id": "ingress-icons@jaiperdu",
23082308
"namespace": "https://github.com/IITC-CE/ingress-intel-total-conversion",
@@ -2316,7 +2316,7 @@
23162316
"none"
23172317
],
23182318
"id_hash": "ingress-icons-by-jaiperdu",
2319-
"updatedAt": "2022-11-14T00:35:45.000Z"
2319+
"updatedAt": "2025-07-28T01:40:50.316Z"
23202320
},
23212321
{
23222322
"author": "jaiperdu",

0 commit comments

Comments
 (0)