diff --git a/src/fetch_response.js b/src/fetch_response.js index 2d0ef68..8f853a0 100644 --- a/src/fetch_response.js +++ b/src/fetch_response.js @@ -80,9 +80,9 @@ export class FetchResponse { async activeScript () { if (this.isScript) { const script = document.createElement('script') - const metaTag = document.querySelector("meta[name=csp-nonce]"); - const nonce = metaTag && metaTag.content; - if (nonce) { script.setAttribute("nonce", nonce) } + const metaTag = document.querySelector('meta[name=csp-nonce]') + const nonce = metaTag && metaTag.content + if (nonce) { script.setAttribute('nonce', nonce) } script.innerHTML = await this.text document.body.appendChild(script) } else {