remove references to niantic variables in their 'nemesis.' object - not available since they introduced minification

This commit is contained in:
Jon Atkins 2014-08-15 00:48:58 +01:00
parent f481287f84
commit b58aff8a54
3 changed files with 2 additions and 18 deletions

View File

@ -2,7 +2,6 @@
// cache for map data tiles.
window.DataCache = function() {
// stock site nemesis.dashboard.DataManager.CACHE_EXPIRY_MS_ = 18E4 - 3 minutes
this.REQUEST_CACHE_FRESH_AGE = 3*60; // if younger than this, use data in the cache rather than fetching from the server
this.REQUEST_CACHE_MAX_AGE = 15*60; // maximum cache age. entries are deleted from the cache after this time

View File

@ -26,17 +26,9 @@ window.MapDataRequest = function() {
// this many tiles in one request
this.NUM_TILES_PER_REQUEST = 4;
try {
// try and use the value from the stock site, if available
this.NUM_TILES_PER_REQUEST = nemesis.dashboard.config.TILES_PER_REQUEST_CACHE_EXP || 4;
} catch(e) {}
// number of times to retry a tile after an error (including "error: TIMEOUT" now - as stock intel does)
this.MAX_TILE_RETRIES = 4;
try {
// stock has a variable for this - try to use it
this.MAX_TILE_RETRIES = nemesis.dashboard.DataManager.MAX_QUADKEY_RETRY_ATTEMPTS_;
} catch(e) {}
this.MAX_TILE_RETRIES = 5;
// refresh timers
this.MOVE_REFRESH = 3; //time, after a map move (pan/zoom) before starting the refresh processing

View File

@ -67,13 +67,6 @@ document.getElementsByTagName('head')[0].innerHTML = ''
//note: smartphone.css injection moved into code/smartphone.js
+ '<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Roboto:100,100italic,300,300italic,400,400italic,500,500italic,700,700italic&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic"/>';
var enableRedeem = true;
try {
enableRedeem = nemesis.dashboard.config.ENABLE_PASSCODE_REDEMPTION;
} catch(e) {
console.warn('failed to check for stock intel nemesis.dashboard.config.ENABLE_PASSCODE_REDEMPTION');
}
document.getElementsByTagName('body')[0].innerHTML = ''
+ '<div id="map">Loading, please wait</div>'
@ -103,7 +96,7 @@ document.getElementsByTagName('body')[0].innerHTML = ''
+ ' <img src="@@INCLUDEIMAGE:images/current-location.png@@"/ title="Current Location">'
+ ' </div>'
+ ' <div id="portaldetails"></div>'
+ (enableRedeem?' <input id="redeem" placeholder="Redeem code…" type="text"/>':'')
+ ' <input id="redeem" placeholder="Redeem code…" type="text"/>'
+ ' <div id="toolbox">'
+ ' <a onmouseover="setPermaLink(this)" onclick="setPermaLink(this);return androidPermalink()" title="URL link to this map view">Permalink</a>'
+ ' <a onclick="window.aboutIITC()" style="cursor: help">About IITC</a>'