Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Apr 14, 2024
1 parent f149dbf commit 1e336f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/web/eventsource/eventsource.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const { MessageEvent } = require('../websocket/events')
const { isNetworkError } = require('../fetch/response')
const { delay } = require('./util')
const { kEnumerableProperty } = require('../../core/util')
const { getGlobalDispatcher } = require('../../global')

let experimentalWarned = false

Expand Down Expand Up @@ -127,7 +126,7 @@ class EventSource extends EventTarget {
url = webidl.converters.USVString(url)
eventSourceInitDict = webidl.converters.EventSourceInitDict(eventSourceInitDict)

this.#dispatcher = eventSourceInitDict.dispatcher ?? getGlobalDispatcher()
this.#dispatcher = eventSourceInitDict.dispatcher

// 2. Let settings be ev's relevant settings object.
// https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object
Expand Down

0 comments on commit 1e336f0

Please sign in to comment.