Skip to content

Commit

Permalink
Use window.AbortController
Browse files Browse the repository at this point in the history
  • Loading branch information
Exelord committed May 12, 2020
1 parent e436d85 commit 8709ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/await/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class AwaitComponent extends Component {

@task({ restartable: true, evented: true })
*promiseTask(value) {
const controller = new AbortController();
const controller = new window.AbortController();
const promiseFn = isFunction(value) ? value : () => value;

try {
Expand Down

0 comments on commit 8709ba1

Please sign in to comment.