Skip to content

Commit

Permalink
Fix for File.lastModified on IE10 and IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
Rasmus Spiegelberg authored and Rasmus Spiegelberg committed Oct 1, 2019
1 parent e4ca386 commit 62551cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Elm/Kernel/File.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ function _File_size(file) { return file.size; }

function _File_lastModified(file)
{
return __Time_millisToPosix(file.lastModified);
// IE10 and IE11 don't support lastModified, but have lastModifiedDate
return __Time_millisToPosix(file.lastModified || file.lastModifiedDate);
}


Expand Down

0 comments on commit 62551cd

Please sign in to comment.