instanceof Event works fine now in GM
This commit is contained in:
parent
1640ab5109
commit
d1f3aa78b8
@ -389,7 +389,7 @@ QR =
|
||||
openFileInput: ->
|
||||
QR.nodes.fileInput.click()
|
||||
fileInput: (files) ->
|
||||
if @ instanceof Element #or files instanceof Event # file input
|
||||
if files instanceof Event # file input
|
||||
files = [@files...]
|
||||
QR.nodes.fileInput.value = null # Don't hold the files from being modified on windows
|
||||
{length} = files
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user