5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 01:56:21 +00:00
panel/app/assets/javascripts/external_links.js

6 lines
203 B
JavaScript
Raw Permalink Normal View History

2019-08-01 18:15:31 +00:00
$(document).on('turbolinks:load', function() {
$("a[href^='http://']").attr('target', '_blank');
$("a[href^='https://']").attr('target', '_blank');
$("a[href^='//']").attr('target', '_blank');
});