Skip to content

Commit

Permalink
Unsuppress promise rejection (qzind#836)
Browse files Browse the repository at this point in the history
qzind#835 - error when retrieving cert prints warning
  • Loading branch information
Brett Berenz authored Jul 15, 2021
1 parent f39e9d4 commit 5ae57f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/qz-tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,10 @@ var qz = (function() {
});
}

_qz.security.callCert().then(sendCert).catch(sendCert);
_qz.security.callCert().then(sendCert).catch(function(error) {
_qz.log.warn("Failed to get certificate:", error);
sendCert(null);
});
},

/** Generate unique ID used to map a response to a call. */
Expand Down

0 comments on commit 5ae57f6

Please sign in to comment.