Skip to content

Commit

Permalink
fix: QR code generator (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil committed Apr 25, 2024
1 parent 2367692 commit 40fe40d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ If installing on a Developer Edition org, you first need to set up **My Domain**

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**.

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

1. Set up permissions:
1. Navigate to **Setup > Users > Permission Sets**, click **Quiz Host**
Expand Down
2 changes: 1 addition & 1 deletion src/main/default/lwc/qrCode/__tests__/qrCode.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('qr-code', () => {

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

0 comments on commit 40fe40d

Please sign in to comment.