Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 881 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 881 Bytes

console() shim

Some browsers require their Developer Tools to be open before console.log() is available (particularly IE9). This is a (tiny!) shim that:

  • Allows developers to use console.log, console.error, console.warn and many others as normal
  • Stores all log data in a buffer
  • Checks every 1000ms for the existance of the native developer tools and outputs the buffer

Help me debug

This issue seems to particularly affect IE9. Do you know of another browser that behaves the same? Create an issue or fire a tweet at @liamnewmarch.

Licensing

This code is distributed under a CC-BY license.