aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-09-20 16:17:30 -0700
committerAdam Soltys <[email protected]>2023-09-20 16:17:30 -0700
commitff5f882ad54113d85f62276855a5ca7fa433c1c8 (patch)
treed7da06382bc6b864eccf8fe9b1210ec1bb4ce5b7 /src
parent3432151caf92965be4aa49ac4f08b29ba6c6d707 (diff)
downloadcoinos-ui-ff5f882ad54113d85f62276855a5ca7fa433c1c8.tar.gz
coinos-ui-ff5f882ad54113d85f62276855a5ca7fa433c1c8.zip
define sleep
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/[username]/shopify.js/+server.js2
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: {