Skip to content

Commit

Permalink
🐛 Fix polyfilling abortcontroller in non window environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukáš Horák committed Oct 22, 2021
1 parent 6d9b3aa commit 4db4489
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { call, take, race } from 'redux-saga/effects';
import type { ActionPattern } from 'redux-saga/effects';
import type { CancellableHandler } from '../../types';

if (!('AbortController' in window)) {
if (typeof window !== 'undefined' && !('AbortController' in window)) {
require('abortcontroller-polyfill/dist/abortcontroller-polyfill-only.js');
}

Expand Down

0 comments on commit 4db4489

Please sign in to comment.