From 1a6b9a1eea1e272336127f3947967a30e1bed91f Mon Sep 17 00:00:00 2001 From: Marcelo Lauxen Date: Tue, 3 Sep 2024 08:03:42 -0300 Subject: [PATCH] lint --- src/fetch_response.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {