Skip to content

Commit

Permalink
Sanitize boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Sep 4, 2023
1 parent 34602b7 commit 9b7ff4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/qz-tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -2608,7 +2608,7 @@ var qz = (function() {
*/
setCertificatePromise: function(promiseHandler, options) {
_qz.security.certHandler = promiseHandler;
_qz.security.rejectOnCertFailure = options && options.rejectOnFailure;
_qz.security.rejectOnCertFailure = !!(options && options.rejectOnFailure);
},

/**
Expand Down

0 comments on commit 9b7ff4d

Please sign in to comment.