From a0c7b1c37ff0b50f7fc49dde38e392a23a621cb4 Mon Sep 17 00:00:00 2001 From: LogMull Date: Sun, 14 Jan 2024 14:23:08 -0500 Subject: [PATCH] Replaced QR code API call Previous API was deprecated (see https://developers.google.com/chart/infographics/docs/qr_codes) and is being turned off for random intervals (see https://groups.google.com/g/google-visualization-api/c/Pzzya6ed14g?pli=1). Replaced with a new API to generate QR Codes --- index.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index ef4c702..20c4046 100644 --- a/index.html +++ b/index.html @@ -269,10 +269,8 @@ .toString() .padStart(leadingZerosInt + 1, "0"); let text = this.prefix + paddedNumber; - // See https://developers.google.com/chart/infographics/docs/qr_codes - let qrCodeUrl = `https://chart.googleapis.com/chart?cht=qr&chl=${encodeURIComponent( - text - )}&chs=300x300&chld=L|0`; + // See https://goqr.me/api/doc/create-qr-code/ + let qrCodeUrl = `https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${text}`; this.labels.push({ qrCodeUrl, text }); }