Skip to content

Commit

Permalink
Merge pull request Tencent#156 from fireyy/dev
Browse files Browse the repository at this point in the history
fix: Uncaught InvalidStateError
  • Loading branch information
Maizify authored Apr 9, 2018
2 parents dfb0478 + 84c3266 commit be5ce49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/network/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class VConsoleNetworkTab extends VConsolePlugin {

// update status
item.readyState = XMLReq.readyState;
item.status = XMLReq.status;
if (XMLReq.readyState > 1) item.status = XMLReq.status;
item.responseType = XMLReq.responseType;

if (XMLReq.readyState == 0) {
Expand Down Expand Up @@ -358,7 +358,7 @@ class VConsoleNetworkTab extends VConsolePlugin {

let query = XMLReq._url.split('?'); // a.php?b=c&d=?e => ['a.php', 'b=c&d=', '?e']
item.url = query.shift(); // => ['b=c&d=', '?e']

if (query.length > 0) {
item.getData = {};
query = query.join('?'); // => 'b=c&d=?e'
Expand All @@ -370,7 +370,7 @@ class VConsoleNetworkTab extends VConsolePlugin {
}

if (item.method == 'POST') {

// save POST data
if (tool.isString(data)) {
let arr = data.split('&');
Expand Down

0 comments on commit be5ce49

Please sign in to comment.