Skip to content

Commit

Permalink
Merge pull request #225 from vladgolubev/patch-1
Browse files Browse the repository at this point in the history
Don't use arrow function introduced in 2.4.1
  • Loading branch information
broofa committed Apr 7, 2019
2 parents bd2795a + 2e00b5c commit 4d59d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mime.js
Expand Up @@ -38,7 +38,7 @@ function Mime() {
*/
Mime.prototype.define = function(typeMap, force) {
for (var type in typeMap) {
var extensions = typeMap[type].map(t => t.toLowerCase());
var extensions = typeMap[type].map(function(t) {return t.toLowerCase()});
type = type.toLowerCase();

for (var i = 0; i < extensions.length; i++) {
Expand Down

0 comments on commit 4d59d76

Please sign in to comment.