Permalink
Browse files

wrong fix earlier

  • Loading branch information...
1 parent 473b2e1 commit ac290041b7ffa80437b5da1a1d2658fd60a46432 @pkrumins committed Dec 14, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 index.js
View
@@ -9,15 +9,12 @@ function cachedBadgeFilename (cacheDir, browsers) {
browserNames.forEach(function (browserName) {
var browserVersions = Object.keys(browsers[browserName]).sort();
browserVersions.forEach(function (browserVersion) {
- var browser = browserName + browserVersion;
+ var browser = browserName.substr(0,1) + browserVersion;
var success = browsers[browserName][browserVersion] ? 's' : 'f';
fileNameParts.push(browser + success);
});
});
- var shortFileNameParts = fileNameParts.map(function (part) {
- return part.substr(0,1);
- });
- return cacheDir + '/' + shortFileNameParts.join('-') + '.png';
+ return cacheDir + '/' + fileNameParts.join('-') + '.png';
}
function isCachedBadge (cacheDir, browsers, cb) {

0 comments on commit ac29004

Please sign in to comment.