Skip to content

Commit e923df4

Browse files
committed
defensive check for node.js support causes IE to break. this updates FileList constructor test
1 parent 658d429 commit e923df4

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)