We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb91ba2 commit cdab545Copy full SHA for cdab545
js/qz-tray.js
@@ -963,7 +963,8 @@ var qz = (function() {
963
/** Check if QZ version supports chosen algorithm */
964
algorithm: function(quiet) {
965
//if not connected yet we will assume compatibility exists for the time being
966
- if (_qz.tools.isActive()) {
+ //check semver to guard race condition for pending connections
967
+ if (_qz.tools.isActive() && _qz.websocket.connection.semver) {
968
if (_qz.tools.isVersion(2, 0)) {
969
if (!quiet) {
970
_qz.log.warn("Connected to an older version of QZ, alternate signature algorithms are not supported");
0 commit comments