Skip to content

Commit

Permalink
lint: ignore line
Browse files Browse the repository at this point in the history
  • Loading branch information
metcoder95 committed Mar 23, 2022
1 parent 6b084c2 commit 590fe7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fetch/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ function determineRequestsReferrer (request) {
Let referrerSource be request’s referrer.
*/
if (request.referrer === 'client') {
if (environment?.globalObject instanceof Window) {
// Not defined in Node but part of the spec
if (environment?.globalObject instanceof Window) { // eslint-disable-line
const origin = environment.globalObject.self?.origin ?? environment.globalObject.location?.origin

// If document’s origin is an opaque origin, return no referrer.
Expand Down

0 comments on commit 590fe7b

Please sign in to comment.