Skip to content

Commit 51cee9f

Browse files
committed
fix: loaded check condition in upload widget
1 parent 585443a commit 51cee9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte-cloudinary/src/components/CldUploadWidget.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
} = $$props as $$Props);
230230
231231
let loaded =
232-
typeof window != 'undefined' && !!window.cloudinary?.videoPlayer;
232+
typeof window != 'undefined' && !!window.cloudinary?.createUploadWidget;
233233
234234
let widget: CloudinaryUploadWidget | undefined;
235235

0 commit comments

Comments
 (0)