bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-08-28 01:34:24 +03:00
parent 65d0eb4559
commit a0aace804c

View File

@ -83,8 +83,8 @@ function(elem){
iterText(elem)
.forEach(function(text){
// skip stuff...
if(text.parentNode.nodeName == 'a'
|| text.parentNode.getAttribute('wikiwords') == 'no'){
if(text.parentNode.nodeName.toLowerCase() == 'a'
|| (text.parentNode.getAttribute('wikiwords') ?? '').toLowerCase() == 'no'){
return }
var t = text.nodeValue
var n = setWikiWords(text.nodeValue)