scrollnav icon indicating copy to clipboard operation
scrollnav copied to clipboard

Replace inner html

Open makrohard opened this issue 4 years ago • 0 comments

Changed list creation. Replaced innerHTML with appendChild(). Changes made in createList, createNav and createList.test. Reason: Get the script running with a Content-Security-Policy Header: require-trusted-types-for 'script' and no policy for scrollnav Seems to work fine, all tests pass. This patch shouldn't have changed the behaviour of scrollnav at all. Can't get codepen to load the external ressource from github. Working demo: aequometer.de

makrohard avatar Feb 06 '21 22:02 makrohard