Skip to content

Commit

Permalink
Merge pull request #2162 from thostetler/fix-firefox-48-bug
Browse files Browse the repository at this point in the history
add polyfill for intersectionObserver
  • Loading branch information
shinyichen authored May 6, 2021
2 parents f69bef9 + 2b53cad commit c333344
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions grunt/concurrent.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = {
'curl:xstate-react',
'curl:array-flat-polyfill',
'curl:sinon',
'curl:polyfill',
],
hash_require: ['hash_require:js', 'hash_require:css'],
};
4 changes: 4 additions & 0 deletions grunt/curl.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,8 @@ module.exports = {
src: 'https://cdnjs.cloudflare.com/ajax/libs/sinon.js/1.9.0/sinon.min.js',
dest: 'src/libs/sinon/index.js',
},
polyfill: {
src: 'https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver',
dest: 'src/libs/polyfill/index.js',
},
};
1 change: 1 addition & 0 deletions src/config/common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ define([], function() {
'config/discovery.vars',
'regenerator-runtime',
'array-flat-polyfill',
'polyfill',
], function(config) {
// rca: not sure why the ganalytics is loaded here instead of inside analytics.js
// perhaps it is because it is much/little sooner this way?
Expand Down
1 change: 1 addition & 0 deletions src/config/discovery.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ require.config({
xstate: 'libs/xstate/index',
'@xstate/react': 'libs/xstate-react/index',
'array-flat-polyfill': 'libs/polyfills/array-flat-polyfill',
polyfill: 'libs/polyfill/index',
},

hbs: {
Expand Down

0 comments on commit c333344

Please sign in to comment.