diff --git a/resources/mmv/mmv.bootstrap.js b/resources/mmv/mmv.bootstrap.js index 870033021..5d972fdaf 100644 --- a/resources/mmv/mmv.bootstrap.js +++ b/resources/mmv/mmv.bootstrap.js @@ -180,7 +180,7 @@ link = $link.prop( 'href' ), alt = $thumb.attr( 'alt' ); - if ( !( title.getExtension().toLowerCase() in bs.validExtensions ) ) { + if ( !title || !title.getExtension() || !( title.getExtension().toLowerCase() in bs.validExtensions ) ) { return; }