Skip to content

Commit

Permalink
Arrow function breaks in IE 11
Browse files Browse the repository at this point in the history
`=>` is not supported in IE11, thus breaks the website in IE11 when it uses gray-matter library.
  • Loading branch information
ajaymathur authored Jul 14, 2018
1 parent 97eb641 commit 86be0eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,5 +222,5 @@ matter.language = function(str, options) {
*/

matter.cache = {};
matter.clearCache = () => (matter.cache = {});
matter.clearCache = function() { matter.cache = {} };
module.exports = matter;

0 comments on commit 86be0eb

Please sign in to comment.