Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

wrong fix earlier

  • Loading branch information...
commit ac290041b7ffa80437b5da1a1d2658fd60a46432 1 parent 473b2e1
Peteris Krumins authored

Showing 1 changed file with 2 additions and 5 deletions. Show diff stats Hide diff stats

  1. +2 5 index.js
7 index.js
@@ -9,15 +9,12 @@ function cachedBadgeFilename (cacheDir, browsers) {
9 9 browserNames.forEach(function (browserName) {
10 10 var browserVersions = Object.keys(browsers[browserName]).sort();
11 11 browserVersions.forEach(function (browserVersion) {
12   - var browser = browserName + browserVersion;
  12 + var browser = browserName.substr(0,1) + browserVersion;
13 13 var success = browsers[browserName][browserVersion] ? 's' : 'f';
14 14 fileNameParts.push(browser + success);
15 15 });
16 16 });
17   - var shortFileNameParts = fileNameParts.map(function (part) {
18   - return part.substr(0,1);
19   - });
20   - return cacheDir + '/' + shortFileNameParts.join('-') + '.png';
  17 + return cacheDir + '/' + fileNameParts.join('-') + '.png';
21 18 }
22 19
23 20 function isCachedBadge (cacheDir, browsers, cb) {

0 comments on commit ac29004

Please sign in to comment.
Something went wrong with that request. Please try again.