Browse Source

Only select links starting with http(s)

merge-requests/14/head
Ivan Fonseca 7 years ago
parent
commit
a57b201b39
No known key found for this signature in database GPG Key ID: 95A9C856EC788689
  1. 2
      tildes/static/js/behaviors/comment-text.js

2
tildes/static/js/behaviors/comment-text.js

@ -1,4 +1,4 @@
$.onmount('[data-js-comment-text]', function() {
// Make all links in comment open in new tab
$(this).find('a').attr('target', '_blank');
$(this).find('a[href^="http"]').attr('target', '_blank');
});
Loading…
Cancel
Save