File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ export class SeamHttpRequest<
60
60
: `/${ this . #config. path } `
61
61
62
62
const path =
63
- params == null ? pathname : [ pathname , serializer ( params ) ] . join ( '?' )
63
+ params == null ? pathname : ` ${ pathname } ? ${ serializer ( params ) } `
64
64
65
- return new URL ( [ origin , path ] . join ( '' ) )
65
+ return new URL ( ` ${ origin } ${ path } ` )
66
66
}
67
67
68
68
public get method ( ) : Method {
@@ -138,7 +138,7 @@ const getUrlPrefix = (input: string): string => {
138
138
} catch ( err : unknown ) {
139
139
if ( globalThis . location != null ) {
140
140
const pathname = input . startsWith ( '/' ) ? input : `/${ input } `
141
- return new URL ( [ globalThis . location . origin , pathname ] . join ( '' ) ) . toString ( )
141
+ return new URL ( ` ${ globalThis . location . origin } ${ pathname } ` ) . toString ( )
142
142
}
143
143
throw err
144
144
}
You can’t perform that action at this time.
0 commit comments