* What operating system are you using? **Windows 11** * What version of Node.js is on your system? **v14.18.1** Array.prototype.forEach.call(links, (link) => { let template = link.import.querySelector('.task-template') let clone = document.importNode(template.content, true) if (link.href.match('about.html')) { document.querySelector('body').appendChild(clone) } else { document.querySelector('.content').appendChild(clone) } })
Array.prototype.forEach.call(links, (link) => {
let template = link.import.querySelector('.task-template')
let clone = document.importNode(template.content, true)
if (link.href.match('about.html')) {
document.querySelector('body').appendChild(clone)
} else {
document.querySelector('.content').appendChild(clone)
}
})