File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -159,9 +159,12 @@ class VirtualNetworkInterface {
159159 case "ready" :
160160 this . setParentState . parentState ( { connection_state : ConnectionState . LoadingWebinterface } ) ;
161161 const iframe = document . getElementById ( "interface" ) as HTMLIFrameElement ;
162- const urlParams = new URLSearchParams ( [
163- [ 'charger' , this . chargerInfo . id ] ,
164- ] ) ;
162+ const urlParamsArray : [ string , string ] [ ] = [ ] ;
163+ if ( ! this . path ) {
164+ urlParamsArray . push ( [ 'charger' , this . chargerInfo . id ] ) ;
165+ }
166+ const urlParams = new URLSearchParams ( urlParamsArray ) ;
167+ console . log ( "path" , this . path ) ;
165168 iframe . src = `/wg-${ this . id } /${ this . path } ?${ urlParams . toString ( ) } ` ;
166169 iframe . addEventListener ( "load" , ( ) => {
167170 clearTimeout ( this . timeout ) ;
You can’t perform that action at this time.
0 commit comments