We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04a38c7 commit a02e114Copy full SHA for a02e114
1 file changed
src/WebViewShared.tsx
@@ -87,7 +87,7 @@ const isDownloadMessageAllowed = ({
87
return false;
88
}
89
90
- return Boolean(downloadWhitelist.find((rule) => rule.origin === origin && rule.allowedFileExtensions.includes(fileExtension)));
+ return Boolean(downloadWhitelist.find((rule) => rule.origin === origin && [rule.allowedFileExtensions].flat().includes(fileExtension)));
91
};
92
93
const urlToProtocolScheme = (url: string): string | null => {
0 commit comments