Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -234,6 +234,10 @@ |
235 | 235 | var thumbnails = data.query.stashimageinfo; |
236 | 236 | for ( var i = 0; i < thumbnails.length; i++ ) { |
237 | 237 | var thumb = thumbnails[i]; |
| 238 | + if ( ! ( thumb.thumburl && thumb.thumbwidth && thumb.thumbheight ) ) { |
| 239 | + mw.log( "thumbnail missing information" ); |
| 240 | + // XXX error |
| 241 | + } |
238 | 242 | var image = document.createElement( 'img' ); |
239 | 243 | $j( image ).load( function() { |
240 | 244 | callback( image ); |