fix csp
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<script nonce="<%= content_security_policy_nonce %>">
|
||||
<script id="autosize_script" nonce="<%= content_security_policy_nonce %>">
|
||||
if (!window.customElements.get('autosize-field')) {
|
||||
window.customElements.define('autosize-field', class extends HTMLElement {
|
||||
connectedCallback() {
|
||||
@@ -19,4 +19,6 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
window.autosize_script.remove()
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user