@lvce-editor/renderer-process 30.82.0 → 30.82.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2743,6 +2743,13 @@ const unwrapItemFile = async item => {
|
|
|
2743
2743
|
const nativeFile = item.getAsFile();
|
|
2744
2744
|
// @ts-ignore
|
|
2745
2745
|
const fileHandle = await item.getAsFileSystemHandle();
|
|
2746
|
+
if (!fileHandle) {
|
|
2747
|
+
return {
|
|
2748
|
+
kind: 'file-legacy',
|
|
2749
|
+
type: item.type,
|
|
2750
|
+
value: nativeFile
|
|
2751
|
+
};
|
|
2752
|
+
}
|
|
2746
2753
|
return {
|
|
2747
2754
|
file: nativeFile,
|
|
2748
2755
|
kind: 'file',
|