cm-web-modules
Advanced tools
Comparing version 1.18.12 to 1.19.0
{ | ||
"name": "cm-web-modules", | ||
"version": "1.18.12", | ||
"version": "1.19.0", | ||
"description": "Collection of clean and small ES6 modules for the web", | ||
@@ -5,0 +5,0 @@ "main": "src/LibraryManager.js", |
@@ -107,2 +107,12 @@ /** | ||
static openExternalLinksBlank() { | ||
const links = document.links | ||
for (let i = 0; i < links.length; i++) { | ||
const target = links[i].target | ||
if (links[i].hostname !== window.location.hostname && target !== "_self") { | ||
links[i].target = '_blank' | ||
} | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
128633
2171