Commit e3668a2f authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent ab270c16
...@@ -104,12 +104,7 @@ ...@@ -104,12 +104,7 @@
type="button" type="button"
on:click={async () => { on:click={async () => {
if (file?.url) { if (file?.url) {
getFileContentById(file.id).then((blob) => { window.open(`${file?.url}/content`, '_blank').focus();
if (blob) {
const url = URL.createObjectURL(blob);
window.open(url, '_blank').focus();
}
});
} }
}} }}
> >
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment