From 0a4cc641c0bc5362fae65f48ce9da1c196123d93 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Mon, 28 Apr 2025 22:06:12 +0100 Subject: [PATCH] qrcode: return on error (instead of generating more) --- apps/qrcode/custom.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/qrcode/custom.html b/apps/qrcode/custom.html index ec6221a59..9106fdbb5 100644 --- a/apps/qrcode/custom.html +++ b/apps/qrcode/custom.html @@ -270,6 +270,7 @@ } catch (error) { document.getElementById("errors").innerText="Error: QR could not be created."; console.error(error); + return; } targetSize = Math.min(deviceWidth - border, deviceHeight - border); @@ -300,6 +301,7 @@ } catch (error) { document.getElementById("errors").innerText="Error: QR could not be created."; console.error(error); + return; } }