Remove unnecessary console warning
This commit is contained in:
parent
1b6d5f8164
commit
920e635d71
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue