Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Replace inner html #108

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

makrohard
Copy link

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

	geändert:       src/util/createNav.js
	geändert:       src/util/createList.js
	geändert:       test/tests/util/createList.test.js
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant