]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/ui/url.js
add base URL support to generated stylesheet
[irc/quakenet/qwebirc.git] / js / ui / url.js
index 0c7e6b021dd54d3f2f4ed1dd9ab2a9ccafcd75b2..cf29349b37636db206e818020d27bd936e9ca5af 100644 (file)
@@ -34,7 +34,6 @@ qwebirc.ui.urlificate = function(element, text, execfn, cmdfn, window) {
     var punct = text.substring(newtext.length);
 
     var a = new Element("span");
-    a.href = "#";
     a.addClass("hyperlink-channel");
     a.addEvent("click", function(e) {
       new Event(e).stop();
@@ -94,9 +93,11 @@ qwebirc.ui.urlificate = function(element, text, execfn, cmdfn, window) {
       
     if(url) {
       a.href = url;
-    
-      if(target)
+
+      if(target) {
         a.target = target;
+        a.setAttribute("rel", "noopener noreferrer");
+      }
     }
     addedText.push(disptext);
     a.appendChild(document.createTextNode(disptext));