For some reason by changing
let parentFolder = this[0].outerText.replace(/s/g, '')
to
let parentFolder = this[0].text.replace(/s/g, '')
causes it to work now without debugger on although I do not know why, but hey it works. Just to be clear, my using the method .text
instead of .outerText
is what made the difference.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…