Skip to content

Commit

Permalink
properly import sameOrigin
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Mar 14, 2022
1 parent 812b4ad commit 9bf8b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fetch/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
const { extractBody, mixinBody, cloneBody } = require('./body')
const { Headers, fill: fillHeaders, HeadersList } = require('./headers')
const util = require('../core/util')
const {sameOrigin} = require('./util');
const {
isValidHTTPToken,
EnvironmentSettingsObject,
Expand Down Expand Up @@ -120,7 +121,6 @@ class Request {

// 9. If request’s window is an environment settings object and its origin
// is same origin with origin, then set window to request’s window.
/* global sameOrigin */
if (
request.window instanceof EnvironmentSettingsObject &&
sameOrigin(request.window, origin)
Expand Down

0 comments on commit 9bf8b39

Please sign in to comment.