Skip to content

Commit

Permalink
Fix linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
danburonline committed Dec 11, 2023
1 parent abd9eda commit 8baa5cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/utils/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export const download = (
// Check if filename already ends with the correct extension
const hasCorrectExtension = filename.endsWith(`.${extension}`);

if (window.navigator.msSaveBlob) {
window.navigator.msSaveBlob(blob, filename);
if ((window.navigator as any).msSaveBlob) {
(window.navigator as any).msSaveBlob(blob, filename);
} else {
const link = document.createElement('a');
link.href = URL.createObjectURL(blob);
Expand Down

0 comments on commit 8baa5cb

Please sign in to comment.