Patch in console for IE9
Nathan Hunzaker committed
Jan 3, 2017 at 20:12 UTC
1d1dd608992c39b0e447539160304a5c332d25c0
1 file changed
+9
fixtures/public/react-loader.js
+9
@@ -10,6 +10,15 @@
10
var REACT_PATH = 'react.js';
11
var DOM_PATH = 'react-dom.js';
12
13
+// Patch console.log for IE9
14
+if (typeof console === 'undefined') {
15
+ console = {
16
+ log: function () {},
17
+ warn: function () {},
18
+ error: function () {},
19
+ }
20
+}
21
+
22
function parseQuery(qstr) {
23
var query = {};
24