mirror of https://github.com/sgoudham/neovide.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
196 B
JavaScript
8 lines
196 B
JavaScript
2 years ago
|
// Open all external links in new tabs
|
||
|
Array.prototype.forEach.call(document.links, function(link) {
|
||
|
if (link.hostname != window.location.hostname) {
|
||
|
link.target = '_blank';
|
||
|
}
|
||
|
})
|
||
|
|