Skip to content

Commit 207a3bf

Browse files
authored
Merge pull request #12 from doanythingfordethklok/master
Fixes IE support for elm/files
2 parents 658d429 + e923df4 commit 207a3bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elm/Kernel/Json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ function _Json_runArrayDecoder(decoder, value, toElmValue)
328328

329329
function _Json_isArray(value)
330330
{
331-
return Array.isArray(value) || (typeof FileList === 'function' && value instanceof FileList);
331+
return Array.isArray(value) || (typeof FileList !== 'undefined' && value instanceof FileList);
332332
}
333333

334334
function _Json_toElmArray(array)

0 commit comments

Comments
 (0)