Skip to content

Commit

Permalink
容错
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Nov 27, 2017
1 parent b5ebbab commit e6563c0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/cos-js-sdk-v5.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ var throttleOnProgress = function (total, onProgress) {
};
};

var fileSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice;
var fileSlice = window.File && (File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice);

var util = {
fileSlice: fileSlice,
Expand Down Expand Up @@ -2326,7 +2326,7 @@ util.extend(COS.prototype, advance);
COS.getAuthorization = util.getAuth;
COS.version = '0.2.1';

module.exports = window.COS = COS;
module.exports = COS;

/***/ }),
/* 7 */
Expand Down
Loading

0 comments on commit e6563c0

Please sign in to comment.