Skip to content

Commit 21cf916

Browse files
authored
fix(trace-viewer): accept Windows ZIP MIME type for clipboard paste (#38629)
1 parent d33727f commit 21cf916

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/trace-viewer/src/ui/workbenchLoader.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ export const WorkbenchLoader: React.FunctionComponent<{
5656
const listener = async (e: ClipboardEvent) => {
5757
if (!e.clipboardData?.files.length)
5858
return;
59+
const zipMimeTypes = ['application/zip', 'application/x-zip-compressed'];
5960
for (const file of e.clipboardData.files) {
60-
if (file.type !== 'application/zip')
61+
if (!zipMimeTypes.includes(file.type))
6162
return;
6263
}
6364
e.preventDefault();

0 commit comments

Comments
 (0)