Skip to content

Commit

Permalink
Remove options.ondemand
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Apr 13, 2021
1 parent 806ecb7 commit 6cb9eab
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/next/client/dev/error-overlay/eventsource.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,5 @@ export function addMessageListener(cb) {
}

export function getEventSourceWrapper(options) {
if (!options.ondemand) {
return {
addMessageListener: (cb) => {
eventCallbacks.push(cb)
},
}
}
return EventSourceWrapper(options)
}

0 comments on commit 6cb9eab

Please sign in to comment.