Skip to content

Instantly share code, notes, and snippets.

@snaka
Created August 26, 2008 01:42
Show Gist options
  • Save snaka/7192 to your computer and use it in GitHub Desktop.
Save snaka/7192 to your computer and use it in GitHub Desktop.
Create dummy object unless unsafeWindow is exists.
// Create dummy object unless unsafeWindow is exists.
if (!unsafeWindow.console) {
unsafeWindow.console = {
log: function() {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment