mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-24 22:26:10 +03:00
Merge pull request #1056 from awagner-mainz/awagner-mainz-no_prior_filetype_check
Update legacytilesource.js
This commit is contained in:
commit
73bea928c5
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user