assets/js/index.js
@@ -131,7 +131,7 @@ if(links) { Array.from(links).forEach(function(link, index){ let target, rel, blank, noopener, attr1, attr2, url, isExternal; url = new URL(elemAttribute(link, 'href')); url = new URL(link.href); // definition of same origin: RFC 6454, section 4 (https://tools.ietf.org/html/rfc6454#section-4) isExternal = url.host !== location.host || url.protocol !== location.protocol || url.port !== location.port; if(isExternal) {