Fixes CodeQL issues (#4090)

This commit is contained in:
Henning Dieterichs 2023-07-19 17:05:52 +02:00 committed by GitHub
parent be57cbf4ef
commit 97c7fdb35c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 6 deletions

View file

@ -46,7 +46,7 @@ async function initialize(state: IPreviewState) {
const style = document.createElement("style");
style.id = "custom-style";
style.innerHTML = state.css;
style.innerHTML = state.css; // CodeQL [SM03712] This is safe because the runner runs in an isolated iframe. This feature is essential to the functionality of the playground. // CodeQL [SM02688] This is safe because the runner runs in an isolated iframe. This feature is essential to the functionality of the playground.
document.body.appendChild(style);
document.body.innerHTML += state.html;