mirror of https://github.com/onweru/compose.git

bb1950328
28.40.2021 e8a99e950428f4d5da241aa52bb0ec357af3e621
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) {