niantic are tweaking the web protocol. so far, seen getThinnedEntitiesV2 renamed to V3 - but no changes in request/response format?!
This commit is contained in:
parent
2144788c43
commit
3ea40952ce
@ -221,7 +221,7 @@ window.requestData = function() {
|
||||
// keep a list of tile_ids with each request. in the case of a server error, we can try and use cached tiles if available
|
||||
var tile_ids = []
|
||||
$.each(tls,function(i,req) { tile_ids.push(req.qk); });
|
||||
window.requests.add(window.postAjax('getThinnedEntitiesV2', data, function(data, textStatus, jqXHR) { window.handleDataResponse(data,false,tile_ids); }, function() { window.handleFailedRequest(tile_ids); }));
|
||||
window.requests.add(window.postAjax('getThinnedEntitiesV3', data, function(data, textStatus, jqXHR) { window.handleDataResponse(data,false,tile_ids); }, function() { window.handleFailedRequest(tile_ids); }));
|
||||
});
|
||||
|
||||
// process the requests from the cache
|
||||
@ -255,7 +255,7 @@ window.handleFailedRequest = function(tile_ids) {
|
||||
handleDataResponse(cachedData, true);
|
||||
}
|
||||
|
||||
if(requests.isLastRequest('getThinnedEntitiesV2')) {
|
||||
if(requests.isLastRequest('getThinnedEntitiesV3')) {
|
||||
var leftOverPortals = portalRenderLimit.mergeLowLevelPortals(null);
|
||||
handlePortalsRender(leftOverPortals);
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ window.portalRenderLimit.splitOrMergeLowLevelPortals = function(originPortals) {
|
||||
portalRenderLimit.resetCounting();
|
||||
portalRenderLimit.countingPortals(originPortals);
|
||||
|
||||
var resultPortals = requests.isLastRequest('getThinnedEntitiesV2')
|
||||
var resultPortals = requests.isLastRequest('getThinnedEntitiesV3')
|
||||
? portalRenderLimit.mergeLowLevelPortals(originPortals)
|
||||
: portalRenderLimit.splitLowLevelPortals(originPortals);
|
||||
|
||||
|
@ -54,7 +54,7 @@ window.plugin.apList.animTimeout;
|
||||
|
||||
// ENTRY POINT ///////////////////////////////////////////////////////////////////
|
||||
window.plugin.apList.handleUpdate = function() {
|
||||
if(!requests.isLastRequest('getThinnedEntitiesV2')) return;
|
||||
if(!requests.isLastRequest('getThinnedEntitiesV3')) return;
|
||||
plugin.apList.updateSortedPortals();
|
||||
plugin.apList.updatePortalTable(plugin.apList.displaySide);
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ window.plugin.showLinkedPortal = function () {
|
||||
};
|
||||
|
||||
window.plugin.showLinkedPortal.handleUpdate = function () {
|
||||
if (!requests.isLastRequest('getThinnedEntitiesV2')) {
|
||||
if (!requests.isLastRequest('getThinnedEntitiesV3')) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user