We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2185a95 commit 9142fb2Copy full SHA for 9142fb2
plugins/console.js
@@ -19,7 +19,11 @@ var logForGivenLevel = function(level) {
19
20
// this fails for some browsers. :(
21
if (originalConsoleLevel) {
22
- originalConsoleLevel.apply(originalConsole, args);
+ // IE9 doesn't allow calling apply on console functions directly
23
+ // See: https://stackoverflow.com/questions/5472938/does-ie9-support-console-log-and-is-it-a-real-function#answer-5473193
24
+ Function.prototype.bind
25
+ .call(originalConsoleLevel, originalConsole)
26
+ .apply(originalConsole, args);
27
}
28
};
29
0 commit comments