From 392533bdb85d53334551961d3fc25f1556141e94 Mon Sep 17 00:00:00 2001 From: Paul Falgout Date: Fri, 17 Mar 2017 18:13:51 +0900 Subject: [PATCH] Prevent console.log error in IE9 or less (#756) console.log doesn't always exist, so this throws an error --- packages/velocity/velocity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/velocity/velocity.js b/packages/velocity/velocity.js index 9e4c0ddb..b58a7edd 100644 --- a/packages/velocity/velocity.js +++ b/packages/velocity/velocity.js @@ -2868,7 +2868,7 @@ if (promiseData.promise) { promiseData.rejecter(new Error(abortError)); } else { - console.log(abortError); + window.console && console.log(abortError); } return getChain();