Skip to content

Commit

Permalink
Compat for dotDensity: "double-legacy"
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Apr 16, 2024
1 parent 5b15f0b commit 52a7dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/qz-tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -856,9 +856,9 @@ var qz = (function() {
if(_qz.tools.versionCompare(2, 2, 4) < 0) {
for(var i = 0; i < printData.length; i++) {
if (printData[i].constructor === Object) {
// Allow dotDensity "double" fallback behavior for newly added "legacy-double", etc.
// Allow dotDensity "double" fallback behavior for newly added "double-legacy", etc.
if (printData[i].options && typeof printData[i].options.dotDensity === 'string') {
printData[i].options.dotDensity = printData[i].options.dotDensity.toLowerCase().replace("legacy-", "");
printData[i].options.dotDensity = printData[i].options.dotDensity.toLowerCase().replace("-legacy", "");
}
}
}
Expand Down

0 comments on commit 52a7dcb

Please sign in to comment.