From e50beb435bc3c2f00665600952a36895968de8f1 Mon Sep 17 00:00:00 2001 From: Andreas Wagner Date: Thu, 20 Oct 2016 11:32:13 +0200 Subject: [PATCH] Update legacytilesource.js Remove check for filetype based on uri or mimetype strings (maybe the filetype is not known before actually downloading the resource). --- src/legacytilesource.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/legacytilesource.js b/src/legacytilesource.js index 04579034..ad2a0ffe 100644 --- a/src/legacytilesource.js +++ b/src/legacytilesource.js @@ -204,12 +204,7 @@ function filterFiles( files ){ file = files[ i ]; if( file.height && file.width && - file.url && ( - file.url.toLowerCase().match(/^.*\.(png|jpg|jpeg|gif)(?:\?.*)?$/) || ( - file.mimetype && - file.mimetype.toLowerCase().match(/^.*\/(png|jpg|jpeg|gif)$/) - ) - ) ){ + file.url ){ //This is sufficient to serve as a level filtered.push({ url: file.url,