FIX: (for IE9) if console.log doesn't exist, make it an noop.

This commit is contained in:
Robin Ward 2015-01-21 11:52:59 -05:00
parent 1ed34be1b9
commit df8880a71a

View File

@ -0,0 +1,10 @@
export default {
name: 'ie9-hacks',
initialize: function() {
if (!window) { return; }
// IE9 does not support a console object unless the developer tools are open
if (!window.console) { window.console = {}; }
if (!window.console.log) { window.console.log = Ember.K; }
}
};