Merge pull request #454 from eltociear/patch-3

chore: update UI.js
This commit is contained in:
Nariman Jelveh 2024-06-05 10:39:43 -07:00 committed by GitHub
commit 1416807c9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -703,7 +703,7 @@ class UI extends EventListener {
if (this.getEntriesFromDataTransferItems.didShowInfo) return
if (err.name !== 'EncodingError') return
this.getEntriesFromDataTransferItems.didShowInfo = true
const infoMsg = `${err.name} occured within datatransfer-files-promise module\n`
const infoMsg = `${err.name} occurred within datatransfer-files-promise module\n`
+ `Error message: "${err.message}"\n`
+ 'Try serving html over http if currently you are running it from the filesystem.'
console.warn(infoMsg)
@ -1071,4 +1071,4 @@ class UI extends EventListener {
}
}
export default UI
export default UI