From b3a841e814f9e38785d5547f0228ba6ea669d0c3 Mon Sep 17 00:00:00 2001 From: Matt Lott Date: Wed, 24 Sep 2014 13:11:55 -0700 Subject: [PATCH] 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 --- app/initialize.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/initialize.coffee b/app/initialize.coffee index db0078ea1..0f102fe22 100644 --- a/app/initialize.coffee +++ b/app/initialize.coffee @@ -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) ->