We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5029327 commit 85daefbCopy full SHA for 85daefb
packages/pinia/src/devtools/file-saver.ts
@@ -112,8 +112,10 @@ export type SaveAs =
112
113
export const saveAs: SaveAs = !IS_CLIENT
114
? () => {} // noop
115
- : // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView
116
- 'download' in HTMLAnchorElement.prototype && !isMacOSWebView
+ : // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
+ typeof HTMLAnchorElement !== 'undefined' &&
117
+ 'download' in HTMLAnchorElement.prototype &&
118
+ !isMacOSWebView
119
? downloadSaveAs
120
: // Use msSaveOrOpenBlob as a second approach
121
'msSaveOrOpenBlob' in _navigator
0 commit comments