@@ -14,8 +14,8 @@ export function mountComponent(
1414 reconnectBackoffMultiplier : number ,
1515) {
1616 // Protocols
17- let httpProtocol = window . location . protocol ;
18- let wsProtocol = `ws${ httpProtocol === "https:" ? "s" : "" } :` ;
17+ const httpProtocol = window . location . protocol ;
18+ const wsProtocol = `ws${ httpProtocol === "https:" ? "s" : "" } :` ;
1919
2020 // WebSocket route (for Python components)
2121 let wsOrigin : string ;
@@ -41,7 +41,7 @@ export function mountComponent(
4141 }
4242
4343 // Embed the initial HTTP path into the WebSocket URL
44- let componentUrl = new URL ( `${ wsOrigin } /${ urlPrefix } /${ componentPath } ` ) ;
44+ const componentUrl = new URL ( `${ wsOrigin } /${ urlPrefix } /${ componentPath } ` ) ;
4545 componentUrl . searchParams . append ( "http_pathname" , window . location . pathname ) ;
4646 if ( window . location . search ) {
4747 componentUrl . searchParams . append ( "http_search" , window . location . search ) ;
@@ -66,7 +66,7 @@ export function mountComponent(
6666
6767 // Replace the prerender element with the real element on the first layout update
6868 if ( client . prerenderElement ) {
69- client . onMessage ( "layout-update" , ( { path , model } ) => {
69+ client . onMessage ( "layout-update" , ( ) => {
7070 if ( client . prerenderElement && client . mountElement ) {
7171 client . prerenderElement . replaceWith ( client . mountElement ) ;
7272 client . prerenderElement = null ;
0 commit comments