diff --git a/src/middleware.ts b/src/middleware.ts index 489d85a..7b0103b 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -525,11 +525,11 @@ function get_page_handler( } // users can set a CSP nonce using res.locals.nonce - const nonceAttr = (res.locals && res.locals.nonce) ? ` nonce="${res.locals.nonce}"` : ''; + const nonce_attr = (res.locals && res.locals.nonce) ? ` nonce="${res.locals.nonce}"` : ''; const body = template() .replace('%sapper.base%', () => ``) - .replace('%sapper.scripts%', () => `${script}`) + .replace('%sapper.scripts%', () => `${script}`) .replace('%sapper.html%', () => html) .replace('%sapper.head%', () => `${head}`) .replace('%sapper.styles%', () => styles);