Skip to content

Commit 01b6836

Browse files
committed
Fix jsFetchMissing
1 parent 35a36ca commit 01b6836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/http/roundtrip_js.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const jsFetchRedirect = "js.fetch:redirect"
4242

4343
// jsFetchMissing will be true if the Fetch API is not present in
4444
// the browser globals.
45-
var jsFetchMissing = !js.Global().Get("fetch").IsUndefined()
45+
var jsFetchMissing = js.Global().Get("fetch").IsUndefined()
4646

4747
// RoundTrip implements the RoundTripper interface using the WHATWG Fetch API.
4848
func (t *Transport) RoundTrip(req *Request) (*Response, error) {

0 commit comments

Comments
 (0)