minor api change for chat callbacks, and plugins fixed to use the new changes
(which broke after today's niantic site update anyway)
This commit is contained in:
@ -186,7 +186,7 @@ window.plugin.guessPlayerLevels.extractChatData = function(data) {
|
||||
attackData[nick][timestamp].push(portal);
|
||||
}
|
||||
|
||||
data.raw.success.forEach(function(msg) {
|
||||
data.result.forEach(function(msg) {
|
||||
var plext = msg[2].plext;
|
||||
|
||||
// search for "x deployed an Ly Resonator on z"
|
||||
|
@ -142,7 +142,7 @@ window.plugin.playerTracker.eventHasLatLng = function(ev, lat, lng) {
|
||||
|
||||
window.plugin.playerTracker.processNewData = function(data) {
|
||||
var limit = plugin.playerTracker.getLimit();
|
||||
$.each(data.raw.success, function(ind, json) {
|
||||
$.each(data.result, function(ind, json) {
|
||||
// skip old data
|
||||
if(json[1] < limit) return true;
|
||||
|
||||
|
@ -72,7 +72,7 @@ window.plugin.uniques.onPortalDetailsUpdated = function() {
|
||||
|
||||
window.plugin.uniques.onPublicChatDataAvailable = function(data) {
|
||||
var nick = window.PLAYER.nickname;
|
||||
data.raw.success.forEach(function(msg) {
|
||||
data.result.forEach(function(msg) {
|
||||
var plext = msg[2].plext,
|
||||
markup = plext.markup;
|
||||
|
||||
|
Reference in New Issue
Block a user