Skip to content

Commit 40fe40d

Browse files
committed
fix: QR code generator (#110)
1 parent 2367692 commit 40fe40d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ If installing on a Developer Edition org, you first need to set up **My Domain**
6363

6464
1. Click [this link](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5p0000013nkIAAQ) to install the host app package and choose **Install for All Users**.
6565

66-
You'll need to approve access to `https://chart.googleapis.com`. We use this library to draw leaderboards.
66+
You'll need to approve access to `https://api.qrserver.com`. We use this library to draw a QR Code.
6767

6868
1. Set up permissions:
6969
1. Navigate to **Setup > Users > Permission Sets**, click **Quiz Host**

src/main/default/lwc/qrCode/__tests__/qrCode.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('qr-code', () => {
2222

2323
const img = element.shadowRoot.querySelector('img');
2424
expect(img.src).toBe(
25-
`https://chart.googleapis.com/chart?chs=${IMAGE_SIZE}x${IMAGE_SIZE}&cht=qr&chl=${encodeURIComponent(
25+
`https://api.qrserver.com/v1/create-qr-code/?size=${IMAGE_SIZE}x${IMAGE_SIZE}&data=${encodeURIComponent(
2626
IMAGE_BASE_URL
2727
)}`
2828
);

0 commit comments

Comments
 (0)