File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 2
2
"author" : " Jason Salzman" ,
3
3
"name" : " react-add-to-calendar" ,
4
4
"description" : " A simple and reusable add to calendar button component for React" ,
5
- "version" : " 0.0.11 " ,
5
+ "version" : " 0.0.12 " ,
6
6
"license" : " MIT" ,
7
7
"homepage" : " https://github.com/jasonsalzman/react-add-to-calendar" ,
8
8
"repository" : {
Original file line number Diff line number Diff line change @@ -19,6 +19,14 @@ export default class ReactAddToCalendar extends React.Component {
19
19
}
20
20
21
21
componentWillMount ( ) {
22
+ // polyfill for startsWith to fix IE bug
23
+ if ( ! String . prototype . startsWith ) {
24
+ String . prototype . startsWith = function ( searchString , position ) {
25
+ position = position || 0 ;
26
+ return this . indexOf ( searchString , position ) === position ;
27
+ } ;
28
+ }
29
+
22
30
let isCrappyIE = false ;
23
31
if ( typeof window !== 'undefined' && window . navigator . msSaveOrOpenBlob && window . Blob ) {
24
32
isCrappyIE = true ;
You can’t perform that action at this time.
0 commit comments