From cf8a441dcfcbd1cd359bd4fde13871dcbc83608b Mon Sep 17 00:00:00 2001 From: Thaddee Tyl Date: Fri, 17 Jan 2014 15:30:13 +0100 Subject: [PATCH] website: favicon. --- Makefile | 3 +++ svg-to-img.js | 2 +- web/favicon.png | Bin 0 -> 392 bytes web/index.html | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 web/favicon.png diff --git a/Makefile b/Makefile index 2b12e18..215ba60 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ all: node make +favicon: + node gh-badge.js '' '' '#bada55' .png > web/favicon.png + deploy: git add Verdana.ttf git commit -m'MUST NOT BE ON GITHUB' diff --git a/svg-to-img.js b/svg-to-img.js index 83f493e..eac8d52 100644 --- a/svg-to-img.js +++ b/svg-to-img.js @@ -35,7 +35,7 @@ module.exports = function (svg, format, out, cb) { }); // Remove the temporary file after use. inStream.on('end', function() { - out.end(); + try { out.end(); } catch(e) {} addToCache(cacheIndex, cached); fs.unlink(tmpFile, cb); }); diff --git a/web/favicon.png b/web/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..1c3c32f303cd61e21453e68ece294c27a478ba88 GIT binary patch literal 392 zcmV;30eAk1P)z(7j5;KoAG;|7`ZooDxn# z4t#~!99SvnJ%C*h(%1zQyvD*Ou(Z`mu(h-D3B=Oc>huMIoPr$7C7a!`u#MR*u5ilv z_%SmC07X$u(lotEl4M&-DbW(+Nm~{$O@sO8$M@T8Ha$DOyQe(Qcj7pHCZdh@k>ALs zT~(m2EWf`lj${x7S4yc)3;-;3*JTKbxA;~P(LOV~JQ(9_!7!nb6heePptWvL1O(}W z0f6<`5P(1Eb20!(>vIc$rdcs)d_m)R%m3d{>lK5IFW7iKr>;Fgt#t)p%?Va+j4eS5 zAztdbK5#Yr{7^6Za~Va^MOl_l%)H*!tQL;#4Dq11c|rh?W!Y|7me)$DF*Enu2KEmB mkcbfW24BN?bb5LI`0xWG%7UD{%^uzW0000 Badge Service +