display a dialog when IITC fails to detect the munge set, making users aware of the problem. includes links to the IITC home page, g+ page and community

This commit is contained in:
Jon Atkins 2013-12-26 22:07:44 +00:00
parent 6557720549
commit 84fb672656
2 changed files with 20 additions and 0 deletions

View File

@ -580,6 +580,18 @@ function boot() {
window.iitcLoaded = true;
window.runHooks('iitcLoaded');
if (!haveDetectedMungeSet()) {
dialog({
title:'IITC unavailable',
html:'<p>IITC failed to detect the appropriate network protocol "munge" parameters from the standard intel site. '
+'This can happen when Niantic make changes to the standard intel site.</p>'
+'<p>The IITC developers are made aware of these problems and will be working on a fix. Please see the following for news/updates.</p>'
+'<ul><li><a href="http://iitc.jonatkins.com/" target="_blank">IITC Home Page</a></li>'
+'<li><a href="https://plus.google.com/105383756361375410867/posts" target="_blank">IITC G+ Page</a></li>'
+'<li><a href="https://plus.google.com/communities/105647403088015055797" target="_blank">IITC G+ Community</a></li></ol>'
});
}
if (typeof android !== 'undefined' && android && android.bootFinished) {
android.bootFinished();
}

View File

@ -194,6 +194,14 @@ window.detectActiveMungeSet = function() {
}
window.haveDetectedMungeSet = function() {
try {
if (!activeMunge) detectActiveMungeSet();
} catch(e) {
}
return activeMunge != null;
}
window.mungeOneString = function(str) {