Skip to content

Commit

Permalink
fix: XMLHttpRequest open 参数透传异常
Browse files Browse the repository at this point in the history
  • Loading branch information
aliaszz committed Dec 7, 2021
1 parent 4f6deb4 commit 7a21f94
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 7a21f94

Please sign in to comment.