Skip to content

Commit 972ebfe

Browse files
committed
tittel iframe
1 parent 77baa14 commit 972ebfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

xp-archive/client/contentPreview/filePreview/FilePreview.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const FilePreview = ({ name, file }: Props) => {
1717
const blobURL = URL.createObjectURL(blob);
1818

1919
if (iframeFiletype.includes(file.mimeType)) {
20-
return <iframe className={style.iframe} src={blobURL} />;
20+
return <iframe className={style.iframe} src={blobURL} title={name} />;
2121
}
2222

2323
return (

xp-archive/client/contentPreview/htmlView/HtmlView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ type Props = {
66
};
77

88
export const HtmlView = ({ html }: Props) => {
9-
return <iframe srcDoc={html} className={style.iframe}></iframe>;
9+
return <iframe title={'HTML-visning'} srcDoc={html} className={style.iframe}></iframe>;
1010
};

0 commit comments

Comments
 (0)