Fix whitespace in all plugins for v5.3.6 (#8285)

* Fix whitespace in all plugins for v5.3.5

* remove const to var chanes
This commit is contained in:
Mario Pietsch
2024-08-20 17:33:07 +02:00
committed by GitHub
parent 014f302af3
commit 231a39e743
14 changed files with 58 additions and 58 deletions

View File

@@ -37,7 +37,7 @@ exports.run = function(text,size,errorCorrectLevel,fallback) {
var result;
try {
result = generateQrCode(text,{size: size, errorCorrectLevel: errorCorrectLevel});
} catch (ex) {
} catch(ex) {
console.log("makeqr error: " + ex);
result = fallback || ("data:image/svg+xml," + encodeURI(QRCODE_GENERATION_ERROR_PREFIX + ex + QRCODE_GENERATION_ERROR_SUFFIX));
}
@@ -54,7 +54,7 @@ function generateQrCode(text,options) {
qr = qrcode(typeNumber,errorCorrectLevel);
qr.addData(text);
qr.make();
} catch (e) {
} catch(e) {
if(typeNumber >= 40) {
throw new Error("Text too long to encode");
} else {