We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0712077 commit 1a6b9a1Copy full SHA for 1a6b9a1
src/fetch_response.js
@@ -80,9 +80,9 @@ export class FetchResponse {
80
async activeScript () {
81
if (this.isScript) {
82
const script = document.createElement('script')
83
- const metaTag = document.querySelector("meta[name=csp-nonce]");
84
- const nonce = metaTag && metaTag.content;
85
- 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) }
86
script.innerHTML = await this.text
87
document.body.appendChild(script)
88
} else {
0 commit comments