Skip to content

Commit 0cc602d

Browse files
committed
Fixes incorrect supportDirectory for Safari
When we look for "WebKit" in the userAgent string, Safari passes even though it does not support directory uploads. Since only Chrome supports directory upload right now, let's just test for Chrome instead.
1 parent b8d15ee commit 0cc602d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/flow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
* Check if directory upload is supported
5858
* @type {boolean}
5959
*/
60-
this.supportDirectory = /WebKit/.test(window.navigator.userAgent);
60+
this.supportDirectory = /Chrome/.test(window.navigator.userAgent);
6161

6262
/**
6363
* List of FlowFile objects

0 commit comments

Comments
 (0)