fix: Fix errors when FileSystemFileEntry is unsupported#1417
Conversation
Signed-off-by: Christopher Ng <[email protected]>
susnux
left a comment
There was a problem hiding this comment.
Yes code looks good :)
But I think we have also a problem here in the utils function, see:
https://developer.mozilla.org/en-US/docs/Web/API/File_and_Directory_Entries_API/Firefox_support#chrome_deviations_from_the_specification
|
|
I think FileSystemFileHandle is used in Chrome |
That is a different API (which is only used by Chrome as all other declined to use that due to security issues). It seems like chrome does not provide those classes as public access, you still can log a file entry on chrome but the class prototype is not exposed. |
When reaching the line on Chromium browsers it will throw
According to online docs FileSystemFileEntry should be available on Chrome but is not defined 😵