Skip to content

Commit

Permalink
Prevent console.log error in IE9 or less (#756)
Browse files Browse the repository at this point in the history
console.log doesn't always exist, so this throws an error
  • Loading branch information
paulfalgout authored and Rycochet committed Aug 2, 2020
1 parent a948817 commit 392533b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/velocity/velocity.js
Original file line number Diff line number Diff line change
Expand Up @@ -2868,7 +2868,7 @@
if (promiseData.promise) {
promiseData.rejecter(new Error(abortError));
} else {
console.log(abortError);
window.console && console.log(abortError);
}

return getChain();
Expand Down

0 comments on commit 392533b

Please sign in to comment.