From 90be76e7f7f2ac19ffb3f98f13b50716cd18597c Mon Sep 17 00:00:00 2001 From: Roy Date: Wed, 1 Feb 2017 15:44:52 -0500 Subject: [PATCH] Allow empty alt tags --- js/cs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/cs.js b/js/cs.js index ed8844e..4ed82e3 100644 --- a/js/cs.js +++ b/js/cs.js @@ -194,7 +194,7 @@ jQuery(document).ready(function($) { } $('#page img').each(function(){ alt = $(this).attr('alt') - if (alt){ + if (undefined != alt){ alt = alt.toLowerCase() //console.log('alt='+alt) if (alt.indexOf('.jpg') >= 0 || alt.indexOf('.png') >= 0 || alt.indexOf('.gif') >= 0 ){