fix version code error check dialog in game_score.js

add plugin, and matching external js file for the website, to fix known bad version codes
This commit is contained in:
Jon Atkins
2014-08-03 19:01:34 +01:00
parent bc6d0cac84
commit bf586282e6
3 changed files with 51 additions and 6 deletions

View File

@ -0,0 +1,21 @@
// this script can be loaded by an IITC plugin, to fix known bad version codes when Niantic have a bad deployment
(function(){
var fixes = {
// 2014-08-02 - broken for 24h+
'81ad679ab5bc219ef3bcf7ca9b760e917cf0c558': 'afdb91368730a906bae38b2837cc411f880350fa',
};
var fixed = fixes[nemesis.dashboard.config.CURRENT_VERSION];
if (fixed) {
console.warn('VersionCodeFixer: bad nemesis.dashboard.config.CURRENT_VERSION: is '+nemesis.dashboard.config.CURRENT_VERSION+', should be '+fixed);
nemesis.dashboard.config.CURRENT_VERSION = fixed;
} else {
console.log('VersionCodeFixer: no known fixes needed');
}
})();