diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/(app)/[username]/shopify.js/+server.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/(app)/[username]/shopify.js/+server.js b/src/routes/(app)/[username]/shopify.js/+server.js index 5e7195e8..03b922fb 100644 --- a/src/routes/(app)/[username]/shopify.js/+server.js +++ b/src/routes/(app)/[username]/shopify.js/+server.js @@ -6,6 +6,7 @@ var qrcode=function(r,_){var t=r,e=QRErrorCorrectLevel[_],n=null,$=0,o=null,a=[] window.addEventListener('load', async () => { + let sleep = (n) => new Promise((r) => setTimeout(r, n)); let wait = async (f, n = 100, s = 300) => { let i = 0; while (!(await f()) && i < s) (await sleep(n)) && i++; @@ -77,7 +78,6 @@ window.addEventListener('load', async () => { headers: { 'Content-Type': 'application/json', accept: 'application/json', - authorization: 'Bearer ${cookies.get('token')}' }, body: JSON.stringify({ invoice: { |
