5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 04:36:20 +00:00
panel/app/assets/javascripts/external_links.js
2019-08-01 15:18:52 -03:00

5 lines
203 B
JavaScript

$(document).on('turbolinks:load', function() {
$("a[href^='http://']").attr('target', '_blank');
$("a[href^='https://']").attr('target', '_blank');
$("a[href^='//']").attr('target', '_blank');
});