Add rel=noopener on changelog links

This commit is contained in:
Pavel Djundik 2019-10-20 17:35:42 +03:00
parent 737afc759b
commit 431221c21e

View file

@ -74,6 +74,7 @@ export default {
for (const link of links) {
// Make sure all links will open a new tab instead of exiting the application
link.setAttribute("target", "_blank");
link.setAttribute("rel", "noopener");
if (link.querySelector("img")) {
// Add required metadata to image links, to support built-in image viewer