]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
refactor(devtools): reject on fileInput error
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 25 Jun 2021 16:40:07 +0000 (18:40 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 25 Jun 2021 16:40:07 +0000 (18:40 +0200)
src/devtools/actions.ts

index 43f4c388e4c4c8d78a82f735bd6d0e16b51390eb..443f3cc78bff3ef23191e8de2fc6f4ce757f5b00 100644 (file)
@@ -84,6 +84,7 @@ function getFileOpener() {
         return resolve({ text: await file.text(), file })
       }
       fileInput!.oncancel = () => resolve(null)
+      fileInput!.onerror = reject
       fileInput!.click()
     })
   }