Skip to content

Commit 62551cd

Browse files
Rasmus SpiegelbergRasmus Spiegelberg
authored andcommitted
Fix for File.lastModified on IE10 and IE11
1 parent e4ca386 commit 62551cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Elm/Kernel/File.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ function _File_size(file) { return file.size; }
2929

3030
function _File_lastModified(file)
3131
{
32-
return __Time_millisToPosix(file.lastModified);
32+
// IE10 and IE11 don't support lastModified, but have lastModifiedDate
33+
return __Time_millisToPosix(file.lastModified || file.lastModifiedDate);
3334
}
3435

3536

0 commit comments

Comments
 (0)