Skip to content

Commit

Permalink
fix: add condition around window.open in case of fastboot
Browse files Browse the repository at this point in the history
  • Loading branch information
remadex committed Dec 17, 2024
1 parent 25be9d1 commit 26102f5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ export class FileListComponent extends Component<FileListSignature> {
}

async downloadFile(file: File) {
window.open(URL.createObjectURL(file));
if (window.open) {
window.open(URL.createObjectURL(file));
}
}

<template>
Expand Down

0 comments on commit 26102f5

Please sign in to comment.