From efd18aa0bea80e75539a65f916e65cb8a85bba9d 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 --- velocity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/velocity.js b/velocity.js index 9e4c0ddb..b58a7edd 100644 --- a/velocity.js +++ b/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();