diff --git a/Lombiq.HelpfulExtensions/Assets/Scripts/target-blank.js b/Lombiq.HelpfulExtensions/Assets/Scripts/target-blank.js index d6fd9612..42752dca 100644 --- a/Lombiq.HelpfulExtensions/Assets/Scripts/target-blank.js +++ b/Lombiq.HelpfulExtensions/Assets/Scripts/target-blank.js @@ -9,7 +9,8 @@ // In the current script, we are not using them. // eslint-disable-next-line no-script-url !links[i].href.startsWith('javascript:') && - !links[i].href.startsWith('mailto:')) { + !links[i].href.startsWith('mailto:') && + links[i].href) { links[i].setAttribute('target', '_blank'); } }