File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ function getHeader(headers, name) {
25
25
return headers [ name ] || headers [ name . toLowerCase ( ) ] ;
26
26
}
27
27
28
+ function _unSupportBrowserTip ( ) {
29
+ const { name, version } = platform ;
30
+ if ( name . toLowerCase ( ) === 'ie' && version . split ( '.' ) [ 0 ] < 10 ) {
31
+ // eslint-disable-next-line no-console
32
+ console . warn ( 'ali-oss does not support the current browser' ) ;
33
+ }
34
+ }
28
35
// check local web protocol,if https secure default set true , if http secure default set false
29
36
function isHttpsWebProtocol ( ) {
30
37
// for web worker not use window.location.
@@ -33,6 +40,7 @@ function isHttpsWebProtocol() {
33
40
}
34
41
35
42
function Client ( options , ctx ) {
43
+ _unSupportBrowserTip ( ) ;
36
44
if ( ! ( this instanceof Client ) ) {
37
45
return new Client ( options , ctx ) ;
38
46
}
You can’t perform that action at this time.
0 commit comments