add LibreJS licenses to all demo JS split browser build from node build add copyright info to license files update to use yarn v4.13.0 update to v0.9.2
17 lines
444 B
JavaScript
17 lines
444 B
JavaScript
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt
|
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
const currentHost = window.location.hostname;
|
|
|
|
const links = document.querySelectorAll("a");
|
|
|
|
links.forEach((link) => {
|
|
if (link.hostname && link.hostname !== currentHost) {
|
|
link.setAttribute("target", "_blank");
|
|
link.setAttribute("rel", "noopener noreferrer");
|
|
}
|
|
});
|
|
});
|
|
|
|
// @license-end
|