From afc7234d3fa88fa7e820a1f67511939d589b1971 Mon Sep 17 00:00:00 2001 From: Paul Falgout Date: Sat, 25 Feb 2017 00:56:28 +0900 Subject: [PATCH] Prevent console.log error in IE9 or less 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 956236b1..bfef2a86 100644 --- a/velocity.js +++ b/velocity.js @@ -2867,7 +2867,7 @@ if (promiseData.promise) { promiseData.rejecter(new Error(abortError)); } else { - console.log(abortError); + window.console && console.log(abortError); } return getChain();