diff --git a/assets/js/src/main.coffee b/assets/js/src/main.coffee index 8c60941d..4fcc5251 100644 --- a/assets/js/src/main.coffee +++ b/assets/js/src/main.coffee @@ -15,9 +15,10 @@ $ -> $('#profile-resume').text window.profile_resume if window.profile_resume if Uno.is 'device', 'desktop' - $(document.links).filter -> - @hostname != window.location.hostname - .attr 'target', '_blank' + $('a').not('[href*="mailto:"]').click -> + if this.href.indexOf(location.hostname) is -1 + window.open $(this).attr 'href' + false if Uno.is 'page', 'post' $('main').readingTime readingTimeTarget: '.post.reading-time > span'