Function inlineConsole

Adds an inline console to the page. A DIV is added to display log messages.

Captures all console.log, console.warn and console.error calls, as well as unhandled exceptions.

// Adds the DIV and intercepts console logs
inlineConsole();

console.log(`Hello`); // message is displayed in the inline console
  • Parameters

    Returns void