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

6 lines
203 B
JavaScript
Raw 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');
});