Skip to content

Commit

Permalink
fix: _unSupportBrowserTip (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
weiyie committed Mar 23, 2020
1 parent a5badee commit 8ed3228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function getHeader(headers, name) {

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

0 comments on commit 8ed3228

Please sign in to comment.