@@ -319,11 +319,11 @@ export function get_page_handler(
319
319
320
320
let replacers : PageContentReducer [ ] = res . replacers || [ ] ;
321
321
replacers = replacers . concat ( [
322
- ( ctx ) => ( ctx . body = ctx . body . replace ( '%sapper.base%' , `<base href="${ ctx . baseUrl } /">` ) , ctx ) ,
323
- ( ctx ) => ( ctx . body = ctx . body . replace ( '%sapper.head%' , `<noscript id='sapper-head-start'></noscript>${ ctx . head } <noscript id='sapper-head-end'></noscript>` ) , ctx ) ,
324
- ( ctx ) => ( ctx . body = ctx . body . replace ( '%sapper.styles%' , ctx . styles ) , ctx ) ,
325
- ( ctx ) => ( ctx . body = ctx . body . replace ( '%sapper.html%' , ctx . html ) , ctx ) ,
326
- ( ctx ) => ( ctx . body = ctx . body . replace ( '%sapper.scripts%' , `<script${ ctx . nonce_attr } >${ ctx . script } </script>` ) , ctx ) ,
322
+ ( ctx ) => ( ctx . body = ctx . body . replace ( '%sapper.base%' , ( ) => `<base href="${ ctx . baseUrl } /">` ) , ctx ) ,
323
+ ( ctx ) => ( ctx . body = ctx . body . replace ( '%sapper.head%' , ( ) => `<noscript id='sapper-head-start'></noscript>${ ctx . head } <noscript id='sapper-head-end'></noscript>` ) , ctx ) ,
324
+ ( ctx ) => ( ctx . body = ctx . body . replace ( '%sapper.styles%' , ( ) => ctx . styles ) , ctx ) ,
325
+ ( ctx ) => ( ctx . body = ctx . body . replace ( '%sapper.html%' , ( ) => ctx . html ) , ctx ) ,
326
+ ( ctx ) => ( ctx . body = ctx . body . replace ( '%sapper.scripts%' , ( ) => `<script${ ctx . nonceAttr } >${ ctx . script } </script>` ) , ctx ) ,
327
327
] ) ;
328
328
329
329
const pageContent = replacers . reduce ( ( ctx : PageContent , replace : PageContentReducer ) => replace ( ctx ) ,
0 commit comments