IE10 compatibility: adding console.debug

Support for console.debug was added in IE11
http://msdn.microsoft.com/en-us/library/ie/dn265066(v=vs.85).aspx
This commit is contained in:
Matt Lott 2014-09-24 13:11:55 -07:00
parent 73e49f9972
commit b3a841e814

View file

@ -20,6 +20,7 @@ definitionSchemas =
'misc': require './schemas/definitions/misc'
init = ->
setupConsoleLogging()
watchForErrors()
setUpIOSLogging()
path = document.location.pathname
@ -86,6 +87,11 @@ initializeServices = ->
service = require service
service()
setupConsoleLogging = ->
unless console.debug
# Needed for IE10 and earlier
console.debug = console.log
watchForErrors = ->
currentErrors = 0
window.onerror = (msg, url, line, col, error) ->