Skip to content

Commit

Permalink
ref #29, fixed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
umang committed Feb 22, 2022
1 parent f1ff143 commit 328a9c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ var jsLogger = /*#__PURE__*/function () {
pending_logs = this.logs;
}

if (pending_logs.length === 0) {
if (!pending_logs || pending_logs === 0) {
this.isAjaxCompleted = true;
this.endCheck();
return;
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class jsLogger {
pending_logs = this.logs;
}

if (pending_logs.length === 0) {
if (!pending_logs || pending_logs === 0) {
this.isAjaxCompleted = true;
this.endCheck();
return;
Expand Down

0 comments on commit 328a9c7

Please sign in to comment.