Skip to content

Commit 8ed3228

Browse files
authored
fix: _unSupportBrowserTip (#755)
1 parent a5badee commit 8ed3228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/browser/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function getHeader(headers, name) {
2727

2828
function _unSupportBrowserTip() {
2929
const { name, version } = platform;
30-
if (name.toLowerCase() === 'ie' && version.split('.')[0] < 10) {
30+
if (name && name.toLowerCase && name.toLowerCase() === 'ie' && version.split('.')[0] < 10) {
3131
// eslint-disable-next-line no-console
3232
console.warn('ali-oss does not support the current browser');
3333
}

0 commit comments

Comments
 (0)