1

Here's my code to over-ride console.log(), and works well in Firefox, Chrome, Opera, etc.

var _log = console.log.bind(console); 
window.console.log = function (data)
{
    _log.call(this,data);
    //do something
}

But, latest version of Microsoft Edge throws me an error.

SCRIPT445: Object doesn't support this action

(at line 1 - var _log = console.log.bind(console); to be specific)

How can I make it work on Edge? Why this doesn't work?

1 Answers1

0

When surfing SO about this, saw this answer and cleared all my Edge settings and data. It worked.