Skip to content

Shim to make browsers store console messages without Dev Tools open (e.g. IE9)

Notifications You must be signed in to change notification settings

scottybrown/console-shim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Shim to make browsers store console messages without Dev Tools open (e.g. IE9)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published