Skip to content

Commit adae530

Browse files
author
Devendra
committed
fixed error on sleep and resume
1 parent 336b9b1 commit adae530

File tree

5 files changed

+122
-122
lines changed

5 files changed

+122
-122
lines changed

web/pubnub-3.7.10.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2585,8 +2585,8 @@ function ajax( setup ) {
25852585
new XDomainRequest() ||
25862586
new XMLHttpRequest();
25872587

2588-
xhr.onerror = xhr.onabort = function(){ done(
2589-
1, xhr.responseText || { "error" : "Network Connection Error"}
2588+
xhr.onerror = xhr.onabort = function(e){ done(
2589+
1, e || (xhr && xhr.responseText) || { "error" : "Network Connection Error"}
25902590
) };
25912591
xhr.onload = xhr.onloadend = finished;
25922592
xhr.onreadystatechange = function() {

0 commit comments

Comments
 (0)