mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
Fixes CodeQL issues (#4090)
This commit is contained in:
parent
be57cbf4ef
commit
97c7fdb35c
3 changed files with 11 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue