diff --git a/botanjs/src/Astro/Blog/Components/VerticalNote.js b/botanjs/src/Astro/Blog/Components/VerticalNote.js index c3ad426c..dfa25587 100644 --- a/botanjs/src/Astro/Blog/Components/VerticalNote.js +++ b/botanjs/src/Astro/Blog/Components/VerticalNote.js @@ -53,12 +53,15 @@ formatted.appendChild( nLine ); - formatted.addEventListener( - "click" - , function( e ) { - window.location = this.loc; - }.bind({ loc: elem.getDAttribute( "href" ) }) - ); + if( elem.getDAttribute( "href" ) ) + { + formatted.addEventListener( + "click" + , function( e ) { + window.location = this.loc; + }.bind({ loc: elem.getDAttribute( "href" ) }) + ); + } len -= opLen; };