diff --git a/src/renderer.ts b/src/renderer.ts index f08b56e91..914b4838b 100644 --- a/src/renderer.ts +++ b/src/renderer.ts @@ -169,8 +169,10 @@ class Renderer extends EventEmitter { const div = document.createElement('div') const shadow = div.attachShadow({ mode: 'open' }) + const cspNonce = this.options.cspNonce && typeof this.options.cspNonce === 'string' ? this.options.cspNonce.replace(/"/g, '') : ''; + shadow.innerHTML = ` -