refac
This commit is contained in:
1 parent
ab270c1682
commit
e3668a2f1c
1 file changed
+1
-6
@@ -104,12 +104,7 @@
|
||||
type="button"
|
||||
on:click={async () => {
|
||||
if (file?.url) {
|
||||
getFileContentById(file.id).then((blob) => {
|
||||
if (blob) {
|
||||
const url = URL.createObjectURL(blob);
|
||||
window.open(url, '_blank').focus();
|
||||
}
|
||||
});
|
||||
window.open(`${file?.url}/content`, '_blank').focus();
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user