@lvce-editor/api 9.35.4 → 9.35.5
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.
|
@@ -56,7 +56,12 @@ export const readFileAsBlob = async (uri) => {
|
|
|
56
56
|
return (await executeCommand('FileSystem.getBlob', uri));
|
|
57
57
|
}
|
|
58
58
|
catch {
|
|
59
|
-
|
|
59
|
+
try {
|
|
60
|
+
return await FileSystemWorker.invoke('FileSystem.getBlob', uri);
|
|
61
|
+
}
|
|
62
|
+
catch {
|
|
63
|
+
return FileSystemWorker.invoke('FileSystem.readFileAsBlob', uri);
|
|
64
|
+
}
|
|
60
65
|
}
|
|
61
66
|
};
|
|
62
67
|
export const readAsObjectUrl = async (uri) => {
|