Преглед на файлове

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);