diff options
| author | Adam Soltys <[email protected]> | 2023-09-20 16:17:30 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-09-20 16:17:30 -0700 |
| commit | ff5f882ad54113d85f62276855a5ca7fa433c1c8 (patch) | |
| tree | d7da06382bc6b864eccf8fe9b1210ec1bb4ce5b7 /src | |
| parent | 3432151caf92965be4aa49ac4f08b29ba6c6d707 (diff) | |
| download | coinos-ui-ff5f882ad54113d85f62276855a5ca7fa433c1c8.tar.gz coinos-ui-ff5f882ad54113d85f62276855a5ca7fa433c1c8.zip | |
define sleep
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: { |
