Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelolx committed Sep 3, 2024
1 parent 0712077 commit 1a6b9a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fetch_response.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1a6b9a1

Please sign in to comment.