Added IE8 workaround for missing console.log.
This commit is contained in:
parent
8e5d0cee09
commit
8ac9d097a9
3 changed files with 9 additions and 3 deletions
|
@ -25,8 +25,5 @@ class _Singleton
|
|||
@_log( module, level, args )
|
||||
|
||||
_log: ( module, level, args ) ->
|
||||
return if !'console' in window
|
||||
return if !'log' in console
|
||||
return if !typeof console.log isnt 'function'
|
||||
console.log "App.#{module}(#{level})", args
|
||||
|
||||
|
|
|
@ -30,3 +30,11 @@
|
|||
//= require_tree ./app/lib/base
|
||||
|
||||
//= require ./app/index.js.coffee
|
||||
|
||||
// IE8 workaround for missing console.log
|
||||
if (!window.console) {
|
||||
window.console = {}
|
||||
}
|
||||
if (!console.log) {
|
||||
console.log = function(){}
|
||||
}
|
||||
|
|
1
public/json-znuny
Normal file
1
public/json-znuny
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue