diff options
| author | Adam Soltys <[email protected]> | 2023-09-24 22:41:54 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-09-24 22:41:54 -0700 |
| commit | 7e6dd4a3d7bcabbfd3e0a2a31d4b98a04e09e210 (patch) | |
| tree | 57155cf50d9d06c967a164b4525691164d6afa93 | |
| parent | eb6242a72a2b21b78cb30f15560352060f7ee9fb (diff) | |
| download | coinos-ui-7e6dd4a3d7bcabbfd3e0a2a31d4b98a04e09e210.tar.gz coinos-ui-7e6dd4a3d7bcabbfd3e0a2a31d4b98a04e09e210.zip | |
fix shopify qr code
| -rw-r--r-- | src/routes/(app)/[username]/shopify.js/+server.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/(app)/[username]/shopify.js/+server.js b/src/routes/(app)/[username]/shopify.js/+server.js index 963b92a1..7b5c9d41 100644 --- a/src/routes/(app)/[username]/shopify.js/+server.js +++ b/src/routes/(app)/[username]/shopify.js/+server.js @@ -46,8 +46,6 @@ window.addEventListener('load', async () => { let s = (s) => new Intl.NumberFormat('en-US', { maximumFractionDigits: 0 }).format(s); - let base64 = drawImg('test', { size: 300 }); - let link = document.createElement('link'); link.setAttribute('rel', 'stylesheet'); link.setAttribute('type', 'text/css'); @@ -92,6 +90,8 @@ window.addEventListener('load', async () => { }) .catch(console.log); + let base64 = drawImg(data.hash, { size: 300 }); + main.innerHTML = \`<a href="lightning:\${data.hash}"> <div style="display: flex; margin-top: 50px; margin-bottom: 80px; position: relative;"> <img id="qrcode" src="\${base64}" /> |
