mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-25 07:24:40 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user