Adding filePaths to the web file picker response (#2739)

`filePaths` is now used to decide which `subscription.db`
type to parse, so this is needed here
This commit is contained in:
Emma 2022-10-18 11:50:59 -04:00 committed by GitHub
parent c26445a09d
commit a6b86fac9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ const actions = {
} }
fileInput.onchange = () => { fileInput.onchange = () => {
const files = Array.from(fileInput.files) const files = Array.from(fileInput.files)
resolve({ canceled: false, files }) resolve({ canceled: false, files, filePaths: files.map(({ name }) => { return name }) })
delete fileInput.onchange delete fileInput.onchange
} }
const listenForEnd = () => { const listenForEnd = () => {