Skip to content

Commit

Permalink
Merge pull request #2 from alfonso-salces/fix-qrscanner
Browse files Browse the repository at this point in the history
Replace nullish coalescing with ternary
  • Loading branch information
NoelDeMartin authored Sep 13, 2022
2 parents 150bdb2 + f4cc2df commit f8c6a72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/src/createQRScannerAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function resetBodyStyles() {
}
}
for (var key of Object.keys(document.body.style)) {
document.body.style[key] = initialStyles[key] ?? '';
document.body.style[key] = initialStyles[key] ? initialStyles[key] : '';
}
}, 100);
}
Expand Down
2 changes: 1 addition & 1 deletion www/www.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function resetBodyStyles() {
}
}
for (var key of Object.keys(document.body.style)) {
document.body.style[key] = initialStyles[key] ?? '';
document.body.style[key] = initialStyles[key] ? initialStyles[key] : '';
}
}, 100);
}
Expand Down

0 comments on commit f8c6a72

Please sign in to comment.