From 4c92d30197b6c56a7d00b62cd248390875c2be33 Mon Sep 17 00:00:00 2001 From: 59naga Date: Mon, 27 Apr 2015 14:11:52 +0900 Subject: [PATCH 1/2] Fixed #6 --- dom-pixels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom-pixels.js b/dom-pixels.js index 97d4b37..afffc05 100644 --- a/dom-pixels.js +++ b/dom-pixels.js @@ -114,7 +114,7 @@ module.exports = function getPixels(url, type, cb) { cb = type type = '' } - var ext = path.extname(url) + var ext = path.extname(url.split('?')[0]) switch(type || ext.toUpperCase()) { case '.GIF': httpGif(url, cb) From 49cd624c37aba6318a69de877875b0dd449c7795 Mon Sep 17 00:00:00 2001 From: 59naga Date: Mon, 27 Apr 2015 14:40:09 +0900 Subject: [PATCH 2/2] Refix undefined is not a function:dom-pixels.js:117 --- dom-pixels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom-pixels.js b/dom-pixels.js index afffc05..faa67fb 100644 --- a/dom-pixels.js +++ b/dom-pixels.js @@ -114,7 +114,7 @@ module.exports = function getPixels(url, type, cb) { cb = type type = '' } - var ext = path.extname(url.split('?')[0]) + var ext = path.extname(url.toString().split('?')[0]) switch(type || ext.toUpperCase()) { case '.GIF': httpGif(url, cb)