We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5754752 commit 772010dCopy full SHA for 772010d
1 file changed
src/components/AddToCalendar.tsx
@@ -54,6 +54,7 @@ function isMobile() {
54
return false;
55
}
56
57
+// @ts-expect-error TODO: replace deprecated method
58
const isIE = (typeof window !== 'undefined' && window.navigator.msSaveOrOpenBlob && window.Blob) as boolean;
59
60
const getCurrentURL = () => {
@@ -200,6 +201,7 @@ export const AddToCalendar: FC<AddToCalendarProps> = ({
200
201
const blob = new Blob([url], { type: 'text/calendar;charset=utf-8' });
202
203
if (isIE) {
204
+ // @ts-expect-error TODO: replace deprecated method
205
window.navigator.msSaveOrOpenBlob(blob, filename);
206
} else {
207
// many browsers do not properly support downloading data URIs
0 commit comments