forked from CGM_Public/pretix_original
remove async-await
This commit is contained in:
@@ -119,6 +119,8 @@ var pretixpaypal = {
|
||||
if (head && ppscript.parentNode) {
|
||||
head.removeChild(ppscript);
|
||||
}
|
||||
|
||||
pretixpaypal.ready();
|
||||
}
|
||||
};
|
||||
},
|
||||
@@ -277,10 +279,4 @@ var pretixpaypal = {
|
||||
|
||||
$(function () {
|
||||
pretixpaypal.load();
|
||||
|
||||
(async() => {
|
||||
while(!pretixpaypal.paypal)
|
||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
||||
pretixpaypal.ready();
|
||||
})();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user