Skip to content

Commit

Permalink
fixup! implement new portal data check in marker
Browse files Browse the repository at this point in the history
  • Loading branch information
le-jeu committed Feb 15, 2021
1 parent ad7e799 commit 68130ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/code/portal_marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ L.PortalMarker = L.CircleMarker.extend({

// we got more details
if (this._details.timestamp == details.timestamp) {
var localThis = this;
["mods", "resonators", "owner", "artifactDetail", "history"].forEach(function (prop) {
if (details[prop]) this._details[prop] = details[prop];
if (details[prop]) localThis._details[prop] = details[prop];
});
// LEGACY - TO BE REMOVED AT SOME POINT! use .guid, .timestamp and .data instead
this._details.ent = details.ent;
Expand Down

0 comments on commit 68130ce

Please sign in to comment.