ingress-intel-total-conversion/website/bad-version-code-fix.js
Jon Atkins bf586282e6 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
2014-08-03 19:01:34 +01:00

22 lines
647 B
JavaScript

// 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');
}
})();