This commit is contained in:
Ricky Miller 2018-02-12 09:40:31 -06:00 committed by Jordan Eldredge
parent e175551a61
commit 94fc18fa27

View file

@ -33,7 +33,7 @@ export async function promptForFileReferences(accept) {
// Does this represent a memory leak somehow?
// Can this fail? Do we ever reject?
const fileInput = document.createElement("input");
if (accept) fileInput.setAttribute('accept', accept)
if (accept) fileInput.setAttribute("accept", accept)
fileInput.type = "file";
fileInput.multiple = true;
// Not entirely sure why this is needed, since the input