import { linkclick } from 'root/windows/home/functions/linkclick' ; export function updatelinks ( ) { const links = document . getElementsByClassName ( 'link' ) ; Array . from ( links ) . forEach ( ( el ) => { el . addEventListener ( 'click' , linkclick ) ; } ) ; }