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 @@ -261,12 +261,12 @@ async function check(autoCheckElement: AutoCheckElement) {
261
261
}
262
262
263
263
const body = new FormData ( )
264
+ const url = new URL ( src , window . location . origin )
264
265
if ( httpMethod === 'POST' ) {
265
266
body . append ( csrfField , csrf )
266
267
body . append ( 'value' , input . value )
267
268
} else {
268
- this . url = new URL ( src , window . location . origin )
269
- this . url . search = new URLSearchParams ( { value : input . value } ) . toString ( )
269
+ url . search = new URLSearchParams ( { value : input . value } ) . toString ( )
270
270
}
271
271
272
272
input . dispatchEvent ( new AutoCheckSendEvent ( body ) )
@@ -280,7 +280,7 @@ async function check(autoCheckElement: AutoCheckElement) {
280
280
state . controller = makeAbortController ( )
281
281
282
282
try {
283
- const response = await fetchWithNetworkEvents ( autoCheckElement , src , {
283
+ const response = await fetchWithNetworkEvents ( autoCheckElement , url . toString ( ) , {
284
284
credentials : 'same-origin' ,
285
285
signal : state . controller . signal ,
286
286
method : httpMethod ,
You can’t perform that action at this time.
0 commit comments