Removed inner styles and updated CSP

This commit is contained in:
Developer 02
2024-05-14 13:50:03 +02:00
parent 87a766a2e8
commit cf9286e4c3
5 changed files with 27 additions and 6 deletions

View File

@@ -67,7 +67,7 @@
}
var baseUrl = "/img/flags";
var $state = $(
`<span style="font-size: 0.85rem;"><img src="${baseUrl}/${state.element.value}.png" class="img-flag me-3" />${state.text}</span>`
`<span><img src="${baseUrl}/${state.element.value}.png" class="img-flag me-3" />${state.text}</span>`
);
return $state;
};

View File

@@ -85,4 +85,4 @@
})
</script>
}
<div id='app' style='background: gray; width: 100vw; height: 100vh; margin: 0 auto;'></div>
<div id='app'></div>