summaryrefslogtreecommitdiff
path: root/links.js
diff options
context:
space:
mode:
Diffstat (limited to 'links.js')
-rw-r--r--links.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/links.js b/links.js
index 5ce558e..f60c6a8 100644
--- a/links.js
+++ b/links.js
@@ -1,5 +1,5 @@
-(function() {
- for (const link of document.getElementsByTagName('a')) {
- if (/^(https?:)?\/\//.test(link.getAttribute('href'))) link.target = '_blank';
- }
+(function() {
+ for (const link of document.getElementsByTagName('a')) {
+ if (/^(https?:)?\/\//.test(link.getAttribute('href'))) link.target = '_blank';
+ }
})(); \ No newline at end of file