Skip to content

Commit 2f8b46b

Browse files
committed
Add console polyfill for ie9
1 parent 894309b commit 2f8b46b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/console-polyfill.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
try {
2+
if (!(window.console && console.log)) {
3+
console = {
4+
log: function(){},
5+
debug: function(){},
6+
info: function(){},
7+
warn: function(){},
8+
error: function(){}
9+
};
10+
}
11+
} catch(e) {}

src/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import './console-polyfill'
12
import Store from './store'
23
import Reactor from './reactor'
34
import Immutable from 'immutable'

0 commit comments

Comments
 (0)