Преглед изворни кода

Open links in new tab/window

sbkwgh пре 7 година
родитељ
комит
c3f3c8eba9
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      frontend/src/components/InputEditorPreview.vue

+ 2 - 0
frontend/src/components/InputEditorPreview.vue

@@ -136,6 +136,8 @@
 
 								a.textContent = content.title;
 								a.href = content.URL;
+								a.setAttribute('target', '_blank');
+								a.setAttribute('rel', 'noopener noreferrer');
 								span.textContent = 'from ' + link.hostname;
 
 								h2.appendChild(a);