@lvce-editor/editor-worker 19.68.1 → 19.68.2
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.
- package/dist/editorWorkerMain.js +3 -0
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -11748,6 +11748,9 @@ const writeClipboardImage = async (editor, blob) => {
|
|
|
11748
11748
|
for (let index = 0; index < 1000; index++) {
|
|
11749
11749
|
const fileName = index === 0 ? `image.${extension}` : `image-${index}.${extension}`;
|
|
11750
11750
|
const uri = getImageUri(editor.uri, fileName);
|
|
11751
|
+
if (await invoke$9(editor.applicationId, 'FileSystem.exists', uri)) {
|
|
11752
|
+
continue;
|
|
11753
|
+
}
|
|
11751
11754
|
try {
|
|
11752
11755
|
await invoke$9(editor.applicationId, 'FileSystem.createFile', uri);
|
|
11753
11756
|
} catch (error) {
|