From 920e635d71c022edfd0bf2c5808bca1ce0ef137d Mon Sep 17 00:00:00 2001 From: Jinksi Date: Sat, 18 Nov 2017 14:56:45 +1000 Subject: [PATCH] Remove unnecessary console warning --- src/util/getImageUrl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/getImageUrl.js b/src/util/getImageUrl.js index 8c5919b..6c96a3e 100644 --- a/src/util/getImageUrl.js +++ b/src/util/getImageUrl.js @@ -4,7 +4,8 @@ const resizedDir = '/images/uploads/resized/' const getImageSrcset = path => { if (path.indexOf('http') >= 0) { - return console.warn('Cannot get srcset for external image: ' + path) + // Cannot get srcset for external image + return } const filename = path.split('.').shift() const extname = path.split('.').pop()