Last active
November 12, 2016 13:40
-
-
Save maynagashev/df35a78d879d6ab6f5e5517faaa6f22e to your computer and use it in GitHub Desktop.
Console.log redefine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.log = function() { | |
try { | |
return console.log.apply(console, arguments); | |
} catch (_error) {} | |
}; | |
// OR | |
window.log = function() { return console.log.apply(console, arguments); }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment