Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
run prettier
  • Loading branch information
trueadm committed Sep 26, 2018
commit c35bf9f2aa1add950bd30bebbf0d8e5bfc1ebef8
5 changes: 4 additions & 1 deletion packages/scheduler/src/Scheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,10 @@ var getFrameDeadline;

// "addEventListener" might not be available on the window object
// if this is a mocked "window" object. So we need to validate that too.
if (typeof window === 'undefined' || typeof window.addEventListener !== 'function') {
if (
typeof window === 'undefined' ||
typeof window.addEventListener !== 'function'
) {
// If this accidentally gets imported in a non-browser environment, fallback
// to a naive implementation.
var timeoutID = -1;
Expand Down