Skip to content

Commit

Permalink
Merge pull request #2 from tnfe/bugfix/request-open
Browse files Browse the repository at this point in the history
fix: XMLHttpRequest open 参数透传异常
  • Loading branch information
aliaszz authored Dec 7, 2021
2 parents 4f6deb4 + 7a21f94 commit e92224d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "csijs",
"version": "1.0.9",
"version": "1.0.10",
"description": "csijs是一个前端日志系统,它将错误信息记录于本地localStorage中。无任何依赖、无入侵性。",
"main": "./dist/csijs.es.js",
"directories": {
Expand Down
6 changes: 3 additions & 3 deletions src/probe/ajaxerr.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const AjaxErr = function (forms) {
AjaxErr.prototype.probe = function () {
const that = this;
const { open } = XMLHttpRequest.prototype;
XMLHttpRequest.prototype.open = (...args) => {
that.addListener(this, args);
open.apply(this, args);
XMLHttpRequest.prototype.open = function() {
that.addListener(this, arguments);
open.apply(this, arguments);
};
};

Expand Down

0 comments on commit e92224d

Please sign in to comment.